diff options
| author | 2022-12-27 11:23:26 +0100 | |
|---|---|---|
| committer | 2023-02-19 14:42:20 +0100 | |
| commit | cdb3ed5b015aa012eeb377d67e3ea81728450c5d (patch) | |
| tree | b684092732cf9b70c364803ee701f89bb4a6e82e | |
| parent | add a bookmark selection form (diff) | |
return embed directly from build_bookmark_embed
| -rw-r--r-- | bot/exts/utilities/bookmark.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/utilities/bookmark.py b/bot/exts/utilities/bookmark.py index 57ac267f..75317708 100644 --- a/bot/exts/utilities/bookmark.py +++ b/bot/exts/utilities/bookmark.py @@ -114,14 +114,13 @@ class Bookmark(commands.Cog): @staticmethod def build_bookmark_embed(target_message: discord.Message) -> discord.Embed: """Build the channel embed to the bookmark requester.""" - embed = discord.Embed( + return 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: |