aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar Amrou Bellalouna <[email protected]>2022-12-23 16:18:18 +0100
committerGravatar shtlrs <[email protected]>2023-02-19 14:42:20 +0100
commita33806f15b90d6a766e01155de772ae87cf6b6d2 (patch)
treec0ead47507f91764e3bca569af71a1d4eedb0ce8 /bot
parentMerge pull request #1210 from shtlrs/bump-isort-in-precommit (diff)
sync commands upon cog load
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/utilities/bookmark.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/exts/utilities/bookmark.py b/bot/exts/utilities/bookmark.py
index 138284c2..c86d3474 100644
--- a/bot/exts/utilities/bookmark.py
+++ b/bot/exts/utilities/bookmark.py
@@ -72,6 +72,10 @@ class Bookmark(commands.Cog):
def __init__(self, bot: Bot):
self.bot = bot
+ async def cog_load(self) -> None:
+ """Carry out cog asynchronous initialisation."""
+ await self.bot.tree.sync()
+
@staticmethod
def build_bookmark_dm(target_message: discord.Message, title: str) -> discord.Embed:
"""Build the embed to DM the bookmark requester."""