mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 17:50:13 +00:00
Sends system json file in DMs instead of publicly
This commit is contained in:
parent
9a973f2d76
commit
7b25138be6
1 changed files with 2 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ async def invite_link(ctx: CommandContext):
|
||||||
|
|
||||||
async def export(ctx: CommandContext):
|
async def export(ctx: CommandContext):
|
||||||
working_msg = await ctx.message.channel.send("Working...")
|
working_msg = await ctx.message.channel.send("Working...")
|
||||||
|
|
||||||
system = await ctx.ensure_system()
|
system = await ctx.ensure_system()
|
||||||
|
|
||||||
members = await system.get_members(ctx.conn)
|
members = await system.get_members(ctx.conn)
|
||||||
|
|
@ -94,7 +94,7 @@ 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.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):
|
async def tell(ctx: CommandContext):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue