From a33806f15b90d6a766e01155de772ae87cf6b6d2 Mon Sep 17 00:00:00 2001 From: Amrou Bellalouna Date: Fri, 23 Dec 2022 16:18:18 +0100 Subject: sync commands upon cog load --- bot/exts/utilities/bookmark.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bot/exts/utilities') 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.""" -- cgit v1.2.3