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