From 7b25138be621562eafe6ffc85b0df05d1d8827dc Mon Sep 17 00:00:00 2001 From: Bella | Nightshade Date: Sat, 2 Mar 2019 04:31:37 +0930 Subject: [PATCH] Sends system json file in DMs instead of publicly --- src/pluralkit/bot/commands/misc_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pluralkit/bot/commands/misc_commands.py b/src/pluralkit/bot/commands/misc_commands.py index ee28836c..07960491 100644 --- a/src/pluralkit/bot/commands/misc_commands.py +++ b/src/pluralkit/bot/commands/misc_commands.py @@ -53,7 +53,7 @@ async def invite_link(ctx: CommandContext): async def export(ctx: CommandContext): working_msg = await ctx.message.channel.send("Working...") - + system = await ctx.ensure_system() members = await system.get_members(ctx.conn) @@ -94,7 +94,7 @@ async def export(ctx: CommandContext): await working_msg.delete() f = io.BytesIO(json.dumps(data).encode("utf-8")) - await ctx.message.channel.send(content="Here you go!", 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")) async def tell(ctx: CommandContext):