aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2019-09-30 16:35:31 +0200
committerGravatar GitHub <[email protected]>2019-09-30 16:35:31 +0200
commitaecda4ced7150d3c246220d7aee54635fe6d0082 (patch)
tree7e5d0cef0c6c8f4946d4045bac59eda5a699c8ea
parentAdd humanized delta and content to confirmation message (diff)
Add jump url
-rw-r--r--bot/cogs/reminders.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/bot/cogs/reminders.py b/bot/cogs/reminders.py
index 695cd36ae..4a470a640 100644
--- a/bot/cogs/reminders.py
+++ b/bot/cogs/reminders.py
@@ -100,9 +100,11 @@ class Reminders(Scheduler, Cog):
embed.set_author(
icon_url=Icons.remind_blurple,
name="It has arrived!"
- )
-
- embed.description = f"Here's your reminder: `{reminder['content']}`"
+
+ if "jump_url" in reminder: # keep backward compatibility
+ embed.description = f"Here's your reminder: `{reminder['content']}`. Jump back when you created the reminder : {jump_url}"
+ else:
+ embed.description = f"Here's your reminder: `{reminder['content']}`"
if late:
embed.colour = Colour.red()
@@ -165,6 +167,7 @@ class Reminders(Scheduler, Cog):
json={
'author': ctx.author.id,
'channel_id': ctx.message.channel.id,
+ 'jump_url': ctx.message.jump_url,
'content': content,
'expiration': expiration.isoformat()
}