v0.1.0-rc.4 #19
@ -92,6 +92,8 @@ class Data(commands.Cog):
|
||||
}
|
||||
)
|
||||
|
||||
# Temporary file must be written synchronously,
|
||||
# otherwise it will not be there when ctx.respond() is be called
|
||||
json_write(users, Path(f"tmp/{uuid}"))
|
||||
|
||||
await ctx.respond(file=File(Path(f"tmp/{uuid}"), filename="users.json"))
|
||||
|
Loading…
Reference in New Issue
Block a user