Compare commits
2 Commits
dae89fd1ac
...
afbb36e182
Author | SHA1 | Date | |
---|---|---|---|
afbb36e182 | |||
226721bb62 |
@ -96,6 +96,7 @@ class Data(commands.Cog):
|
|||||||
|
|
||||||
# Temporary file must be written synchronously,
|
# Temporary file must be written synchronously,
|
||||||
# otherwise it will not be there when ctx.respond() is be called
|
# otherwise it will not be there when ctx.respond() is be called
|
||||||
|
# TODO Find a way to give this file to Pycord without FS operations
|
||||||
json_write(users, Path(f"tmp/{uuid}"))
|
json_write(users, Path(f"tmp/{uuid}"))
|
||||||
|
|
||||||
await ctx.respond(file=File(Path(f"tmp/{uuid}"), filename="users.json"))
|
await ctx.respond(file=File(Path(f"tmp/{uuid}"), filename="users.json"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user