From 2794ed8af347e556277ecf80b7b1eef4332cb03f Mon Sep 17 00:00:00 2001 From: Amrou Bellalouna Date: Mon, 26 Dec 2022 13:05:47 +0100 Subject: fix `AttributeError` on interaction.user This bus was introduced upon refactoring the perms check. It tries to access an author property from within a user, which doesn't exist. --- bot/exts/utilities/bookmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot') diff --git a/bot/exts/utilities/bookmark.py b/bot/exts/utilities/bookmark.py index 47db9a0b..aa809014 100644 --- a/bot/exts/utilities/bookmark.py +++ b/bot/exts/utilities/bookmark.py @@ -138,7 +138,7 @@ class Bookmark(commands.Cog): """The callback that will be invoked upon using the bookmark's context menu command.""" permissions = interaction.channel.permissions_for(interaction.user) if not permissions.read_messages: - log.info(f"{interaction.user.author} tried to bookmark a message in #{interaction.channel}" + log.info(f"{interaction.user} tried to bookmark a message in #{interaction.channel}" f"but has no permissions.") embed = Bookmark.build_error_embed("You don't have permission to view this channel.") await interaction.response.send_message(embed=embed) -- cgit v1.2.3