Curse my oversight
This commit is contained in:
parent
b5d1b87a72
commit
3fae4965e8
@ -158,8 +158,13 @@ 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"))
|
||||||
await ctx.reply_ok("DM'd!")
|
export_msg = ctx.message.author.send(content="Here you go! \u2709", file=discord.File(fp=f, filename="pluralkit_system.json"))
|
||||||
await ctx.message.author.send(content="Here you go!", file=discord.File(fp=f, filename="pluralkit_system.json"))
|
|
||||||
|
if isinstance(ctx.message.channel, discord.DMChannel):
|
||||||
|
await export_msg
|
||||||
|
else:
|
||||||
|
await ctx.reply_ok("DM'd!")
|
||||||
|
await export_msg
|
||||||
|
|
||||||
|
|
||||||
async def tell(ctx: CommandContext):
|
async def tell(ctx: CommandContext):
|
||||||
|
Loading…
Reference in New Issue
Block a user