diff options
| author | 2020-01-07 20:31:46 +0530 | |
|---|---|---|
| committer | 2020-01-07 20:31:46 +0530 | |
| commit | b4846a9e5262f0b86045d81da5ccb1be33f294e8 (patch) | |
| tree | 74cbd9436744dbd2e92bf48b03292fff316de7f8 | |
| parent | Moved jump url into a field. (diff) | |
Removed unnacessary `content` variable usage
| -rw-r--r-- | bot/seasons/evergreen/bookmark.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/seasons/evergreen/bookmark.py b/bot/seasons/evergreen/bookmark.py index 56c436d6..0197f9f4 100644 --- a/bot/seasons/evergreen/bookmark.py +++ b/bot/seasons/evergreen/bookmark.py @@ -25,11 +25,10 @@ class Bookmark(commands.Cog): ) -> None:
"""Send the author a link to `target_message` via DMs."""
log.info(f"{ctx.author} bookmarked {target_message.jump_url} with title '{title}'")
- content = target_message.content
embed = discord.Embed(
title=title,
colour=Colours.soft_green,
- description=content
+ description=target_message.content
)
embed.add_field(name="Wanna give it a visit?", value=f"[Visit original message]({target_message.jump_url})")
embed.set_author(name=target_message.author, icon_url=target_message.author.avatar_url)
|