mirror of
https://github.com/CAG2Mark/SuperUserBot.git
synced 2024-11-14 06:23:48 +01:00
fix await bug
This commit is contained in:
parent
97d0c05058
commit
a9d1ba9113
2
bot.py
2
bot.py
@ -76,7 +76,7 @@ class Bot:
|
|||||||
sudo_role = inter.guild.get_role(sudo_role_id)
|
sudo_role = inter.guild.get_role(sudo_role_id)
|
||||||
|
|
||||||
if not sudo_role:
|
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
|
return
|
||||||
|
|
||||||
await inter.user.add_roles(sudo_role)
|
await inter.user.add_roles(sudo_role)
|
||||||
|
Loading…
Reference in New Issue
Block a user