From 3fae4965e83d1e437d68d25446152756da6a937a Mon Sep 17 00:00:00 2001 From: xBelladonna Date: Sat, 20 Apr 2019 23:29:19 +0930 Subject: [PATCH] Curse my oversight --- src/pluralkit/bot/commands/misc_commands.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pluralkit/bot/commands/misc_commands.py b/src/pluralkit/bot/commands/misc_commands.py index 2b6caa7f..3941bcf5 100644 --- a/src/pluralkit/bot/commands/misc_commands.py +++ b/src/pluralkit/bot/commands/misc_commands.py @@ -158,8 +158,13 @@ async def export(ctx: CommandContext): await working_msg.delete() f = io.BytesIO(json.dumps(data).encode("utf-8")) - await ctx.reply_ok("DM'd!") - await ctx.message.author.send(content="Here you go!", file=discord.File(fp=f, filename="pluralkit_system.json")) + 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): + await export_msg + else: + await ctx.reply_ok("DM'd!") + await export_msg async def tell(ctx: CommandContext):