Role check v2
This commit is contained in:
parent
80180f9b46
commit
46a7221f1f
2
bot.py
2
bot.py
|
|
@ -41,7 +41,7 @@ async def update(ctx):
|
|||
@update.error
|
||||
async def update_error(ctx: discord.Interaction, error):
|
||||
if isinstance(error, discord.app_commands.MissingRole):
|
||||
text = "Sorry {}, you do not have permissions to do that!".format(ctx.message.author)
|
||||
text = "Sorry {}, you do not have permissions to do that!".format(ctx.user)
|
||||
await ctx.response.send_message(text)
|
||||
|
||||
client.run(data['token'])
|
||||
Loading…
Reference in New Issue
Block a user