diff options
author | 2022-12-26 12:38:25 +0100 | |
---|---|---|
committer | 2023-02-19 14:42:20 +0100 | |
commit | 89973f8878c0bdc2d13e6c4a9bfa61440dde0215 (patch) | |
tree | cc9413c4d343dc2c1021917b251446624b7dc658 | |
parent | make bookmark_context_menu_callback protected (diff) |
keep style consistency when forming embeds
-rw-r--r-- | bot/exts/utilities/bookmark.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bot/exts/utilities/bookmark.py b/bot/exts/utilities/bookmark.py index 23c84fe2..a4778ea0 100644 --- a/bot/exts/utilities/bookmark.py +++ b/bot/exts/utilities/bookmark.py @@ -77,20 +77,17 @@ class Bookmark(commands.Cog): ) self.bot.tree.add_command(self.book_mark_context_menu) - async def cog_load(self) -> None: - """Carry out cog asynchronous initialisation.""" - await self.bot.tree.sync() - @staticmethod def build_bookmark_embed(target_message: discord.Message) -> discord.Embed: """Build the channel embed to the bookmark requester.""" - return discord.Embed( + embed = discord.Embed( description=( f"Click the button to be sent your very own bookmark to " f"[this message]({target_message.jump_url})." ), colour=Colours.soft_green, ) + return embed @staticmethod def build_bookmark_dm(target_message: discord.Message, title: str) -> discord.Embed: |