aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar Amrou Bellalouna <[email protected]>2022-12-23 17:35:53 +0100
committerGravatar shtlrs <[email protected]>2023-02-19 14:42:20 +0100
commitcab71fbcdfe140f9821d6d373ce75856eb2bbf88 (patch)
tree20cec9f078e0280d74854228215fc8ec4cf5152b /bot
parentrename run_permission_check to user_is_permitted_to_bookmark (diff)
make bookmark_context_menu_callback protected
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/utilities/bookmark.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/utilities/bookmark.py b/bot/exts/utilities/bookmark.py
index 4a6e4d0c..23c84fe2 100644
--- a/bot/exts/utilities/bookmark.py
+++ b/bot/exts/utilities/bookmark.py
@@ -73,7 +73,7 @@ class Bookmark(commands.Cog):
self.bot = bot
self.book_mark_context_menu = discord.app_commands.ContextMenu(
name="Bookmark",
- callback=self.book_mark_context_menu_callback
+ callback=self._bookmark_context_menu_callback
)
self.bot.tree.add_command(self.book_mark_context_menu)
@@ -159,7 +159,7 @@ class Bookmark(commands.Cog):
return False
return True
- async def book_mark_context_menu_callback(self, interaction: discord.Interaction, message: discord.Message) -> None:
+ async def _bookmark_context_menu_callback(self, interaction: discord.Interaction, message: discord.Message) -> None:
"""The callback that will be invoked upon using the bookmark's context menu command."""
if not await self.user_is_permitted_to_bookmark(interaction.user, message.channel):
return