Add UpdateUsernameVerify view to MessageManagementCog.

This commit is contained in:
alwayscompiling
2022-08-13 20:23:56 -04:00
parent cb71cbe1d5
commit 6147263647
5 changed files with 32 additions and 16 deletions
@@ -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["Old Username"]
new_username: str = embed_content["New Username"]
old_username: str = embed_content[0].value()
new_username: str = embed_content[1].value()
guild = highscores_data.get_guild(interaction.guild_id)