aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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."""