From 226721bb62e7a67807d4ccb17033e25f26879492 Mon Sep 17 00:00:00 2001 From: profitroll Date: Sun, 9 Feb 2025 20:57:22 +0100 Subject: [PATCH] Updated username to replace discriminator with a username for data export --- cogs/data.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"))