aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar AG_1436 <[email protected]>2019-12-08 22:47:36 +0530
committerGravatar GitHub <[email protected]>2019-12-08 22:47:36 +0530
commit507863c2ca1ef5be0911cb08f0cabcf7661a256b (patch)
tree3d8536ccf2390294413985a5e63a11c1e180d852 /bot
parentReworked on the whole structure completely. (diff)
Improved DM message
Simplified the DM , example in the original post
Diffstat (limited to 'bot')
-rw-r--r--bot/seasons/evergreen/bookmark.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/bot/seasons/evergreen/bookmark.py b/bot/seasons/evergreen/bookmark.py
index dfbca5bd..2ace4723 100644
--- a/bot/seasons/evergreen/bookmark.py
+++ b/bot/seasons/evergreen/bookmark.py
@@ -21,17 +21,19 @@ class Bookmark(commands.Cog):
"""Send you a link to the provided message in DM."""
log.info(f"{ctx.author} bookmarked {target_message.jump_url} with hints {title}.")
- embed = discord.Embed(title="Your bookmark", colour=Colours.soft_green)
-
if not title:
title = "No hint provided."
+ embed = discord.Embed(
+ title=title,
+ colour=Colours.soft_green,
+ description=f"{target_message.content} \n\n[Give it a visit.]({target_message.jump_url})"
+ )
embed.set_author(name=target_message.author)
- embed.add_field(name='Content', value=target_message.content, inline=False)
- embed.add_field(name='Hints', value=title, inline=False)
- embed.add_field(name='Link', value=target_message.jump_url, inline=False)
embed.set_author(name=target_message.author, icon_url=target_message.author.avatar_url)
- # embed.set_image()
+ embed.set_thumbnail(url="https://img.icons8.com/color/48/FF3333/"
+ "bookmark-ribbon.png")
+ embed.set_footer(text=f"{ctx.author}")
try:
await ctx.author.send(embed=embed)
except discord.Forbidden:
@@ -42,7 +44,7 @@ class Bookmark(commands.Cog):
)
await ctx.send(embed=embed_error)
return
- await ctx.send("Bookmark sent to your DMs.")
+ await ctx.send("Bookmark sent to your DM.")
def setup(bot: commands.Bot) -> None: