diff --git a/cogs/data.py b/cogs/data.py index b5af890..e892039 100644 --- a/cogs/data.py +++ b/cogs/data.py @@ -90,13 +90,14 @@ class Data(commands.Cog): { "id": member.id, "nick": member.nick, - "username": f"{member.name}#{member.discriminator}", + "username": f"{member.name}", "bot": member.bot, } ) # Temporary file must be written synchronously, # 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}")) await ctx.respond(file=File(Path(f"tmp/{uuid}"), filename="users.json"))