aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Amrou Bellalouna <[email protected]>2022-12-26 12:38:25 +0100
committerGravatar shtlrs <[email protected]>2023-02-19 14:42:20 +0100
commit89973f8878c0bdc2d13e6c4a9bfa61440dde0215 (patch)
treecc9413c4d343dc2c1021917b251446624b7dc658
parentmake bookmark_context_menu_callback protected (diff)
keep style consistency when forming embeds
-rw-r--r--bot/exts/utilities/bookmark.py7
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: