diff options
author | 2022-12-26 13:05:47 +0100 | |
---|---|---|
committer | 2023-02-19 14:42:20 +0100 | |
commit | 2794ed8af347e556277ecf80b7b1eef4332cb03f (patch) | |
tree | bd34aca1c79e172b9e4161e8e10a8cea40d86b5e | |
parent | fix `AttributeError` on interaction.channel (diff) |
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.
-rw-r--r-- | bot/exts/utilities/bookmark.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |