mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 02:00:09 +00:00
Don't drink and code kids
This commit is contained in:
parent
3fae4965e8
commit
a51fe5e759
1 changed files with 3 additions and 5 deletions
|
|
@ -158,13 +158,11 @@ async def export(ctx: CommandContext):
|
||||||
await working_msg.delete()
|
await working_msg.delete()
|
||||||
|
|
||||||
f = io.BytesIO(json.dumps(data).encode("utf-8"))
|
f = io.BytesIO(json.dumps(data).encode("utf-8"))
|
||||||
export_msg = ctx.message.author.send(content="Here you go! \u2709", file=discord.File(fp=f, filename="pluralkit_system.json"))
|
|
||||||
|
|
||||||
if isinstance(ctx.message.channel, discord.DMChannel):
|
if not isinstance(ctx.message.channel, discord.DMChannel):
|
||||||
await export_msg
|
|
||||||
else:
|
|
||||||
await ctx.reply_ok("DM'd!")
|
await ctx.reply_ok("DM'd!")
|
||||||
await export_msg
|
|
||||||
|
await ctx.message.author.send(content="Here you go! \u2709", file=discord.File(fp=f, filename="pluralkit_system.json"))
|
||||||
|
|
||||||
|
|
||||||
async def tell(ctx: CommandContext):
|
async def tell(ctx: CommandContext):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue