aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar D0rs4n <[email protected]>2021-08-17 11:51:01 +0200
committerGravatar D0rs4n <[email protected]>2021-08-17 11:51:01 +0200
commitd697860f22d13063a064ebc5982dea2dc127b0f0 (patch)
tree57fae26eec3649b637f3586d59b5ddfbcd95ecbe
parentImprove code consitency in remainders (diff)
Provide jump_url in reminders even when the bot replies
When the message is in the same channel and the bot replies, from now on it will also provide a jump_url for the sake of consistency
-rw-r--r--bot/exts/utils/reminders.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utils/reminders.py b/bot/exts/utils/reminders.py
index 66a0e6e92..03c7d0323 100644
--- a/bot/exts/utils/reminders.py
+++ b/bot/exts/utils/reminders.py
@@ -195,6 +195,7 @@ class Reminders(Cog):
)
jump_url = reminder.get("jump_url")
+ embed.description += f"\n[Jump back to when you created the reminder]({jump_url})"
partial_message = channel.get_partial_message(int(jump_url.split("/")[-1]))
try:
await partial_message.reply(content=f"{additional_mentions}", embed=embed)
@@ -203,7 +204,6 @@ class Reminders(Cog):
f"There was an error when trying to reply to a reminder invocation message, {e}, "
"fall back to using jump_url"
)
- embed.description += f"\n[Jump back to when you created the reminder]({reminder['jump_url']})"
await channel.send(content=f"{user.mention} {additional_mentions}", embed=embed)
log.debug(f"Deleting reminder #{reminder['id']} (the user has been reminded).")