From ee2aaba42158e9e0bfbeb4d32c5063a46259e450 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Sat, 29 Jul 2023 19:16:59 -0400 Subject: [PATCH] Must await the edit. --- cogs/commands/request.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/commands/request.py b/cogs/commands/request.py index 5083504..d7c694d 100644 --- a/cogs/commands/request.py +++ b/cogs/commands/request.py @@ -62,8 +62,8 @@ class UsernameRequest(nextcord.ui.View): async def approve(self, button: nextcord.ui.Button, interaction: nextcord.Interaction): user = interaction.guild.get_member(self.user_id) if user is not None: - user.edit(nick=self.new_nickname) - content = interaction.message.content + f" Approved by <@{interaction.user.id}.>" + await user.edit(nick=self.new_nickname) + content = interaction.message.content + f" Approved by <@{interaction.user.id}>." await interaction.response.edit_message(content=content, view=None) else: await interaction.response.edit_message(