Role check v2

This commit is contained in:
Marco Loewe 2023-11-14 10:59:55 +01:00
parent 80180f9b46
commit 46a7221f1f

2
bot.py
View File

@ -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'])