From 46a7221f1f2265cc898bda938df5f066a4aff4b9 Mon Sep 17 00:00:00 2001 From: Marco Loewe Date: Tue, 14 Nov 2023 10:59:55 +0100 Subject: [PATCH] Role check v2 --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index b9eaa7e..f90e6d2 100644 --- a/bot.py +++ b/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']) \ No newline at end of file