Correcting embed access.
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user