fix await bug

This commit is contained in:
CAG2Mark 2024-04-29 00:15:32 +08:00
parent 97d0c05058
commit a9d1ba9113

2
bot.py
View File

@ -76,7 +76,7 @@ class Bot:
sudo_role = inter.guild.get_role(sudo_role_id)
if not sudo_role:
inter.response.send_message(embed=error_embed("Misconfigured sudo role. Please contact an administrator."), ephemeral=True)
await inter.response.send_message(embed=error_embed("Misconfigured sudo role. Please contact an administrator."), ephemeral=True)
return
await inter.user.add_roles(sudo_role)