Correcting embed access.

This commit is contained in:
alwayscompiling
2022-08-13 20:30:03 -04:00
parent 6147263647
commit 2407e61913
@@ -45,8 +45,8 @@ class UpdateUsernameVerifyView(nextcord.ui.View):
interaction (nextcord.Interaction): Interaction with the button interaction (nextcord.Interaction): Interaction with the button
""" """
embed_content = interaction.message.embeds[0].to_dict() embed_content = interaction.message.embeds[0].to_dict()
old_username: str = embed_content[0].value() old_username: str = embed_content["fields"][0]["value"]
new_username: str = embed_content[1].value() new_username: str = embed_content["fields"][1]["value"]
guild = highscores_data.get_guild(interaction.guild_id) guild = highscores_data.get_guild(interaction.guild_id)