diff options
author | 2022-12-23 16:18:18 +0100 | |
---|---|---|
committer | 2023-02-19 14:42:20 +0100 | |
commit | a33806f15b90d6a766e01155de772ae87cf6b6d2 (patch) | |
tree | c0ead47507f91764e3bca569af71a1d4eedb0ce8 /bot/exts/utilities/bookmark.py | |
parent | Merge pull request #1210 from shtlrs/bump-isort-in-precommit (diff) |
sync commands upon cog load
Diffstat (limited to 'bot/exts/utilities/bookmark.py')
-rw-r--r-- | bot/exts/utilities/bookmark.py | 4 |
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.""" |