From 2407e6191325fe84e2d8b9178bccc93cb6921225 Mon Sep 17 00:00:00 2001 From: alwayscompiling Date: Sat, 13 Aug 2022 20:30:03 -0400 Subject: [PATCH] Correcting embed access. --- cogs/commands/views/update_username_verify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/commands/views/update_username_verify.py b/cogs/commands/views/update_username_verify.py index 0c3a94c..4d07442 100644 --- a/cogs/commands/views/update_username_verify.py +++ b/cogs/commands/views/update_username_verify.py @@ -45,8 +45,8 @@ class UpdateUsernameVerifyView(nextcord.ui.View): interaction (nextcord.Interaction): Interaction with the button """ embed_content = interaction.message.embeds[0].to_dict() - old_username: str = embed_content[0].value() - new_username: str = embed_content[1].value() + old_username: str = embed_content["fields"][0]["value"] + new_username: str = embed_content["fields"][1]["value"] guild = highscores_data.get_guild(interaction.guild_id)