aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-04-20 18:07:16 -0400
committerGravatar ToxicKidz <[email protected]>2021-04-20 18:07:16 -0400
commit1a65e2a0505c719a77ccf9b0832f44ac035c4f1c (patch)
treee1163fc86f1e6d2801a6d67fd11a5d948f49ae70
parentMerge pull request #1535 from francisdbillones/patch-1 (diff)
chore: Use Embed.timestamp for showing when the reminder will be sent
-rw-r--r--bot/exts/utils/reminders.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/bot/exts/utils/reminders.py b/bot/exts/utils/reminders.py
index 3113a1149..1d0832d9a 100644
--- a/bot/exts/utils/reminders.py
+++ b/bot/exts/utils/reminders.py
@@ -90,15 +90,18 @@ class Reminders(Cog):
delivery_dt: t.Optional[datetime],
) -> None:
"""Send an embed confirming the reminder change was made successfully."""
- embed = discord.Embed()
- embed.colour = discord.Colour.green()
- embed.title = random.choice(POSITIVE_REPLIES)
- embed.description = on_success
+ embed = discord.Embed(
+ description=on_success,
+ colour=discord.Colour.green(),
+ title=random.choice(POSITIVE_REPLIES)
+ )
footer_str = f"ID: {reminder_id}"
+
if delivery_dt:
# Reminder deletion will have a `None` `delivery_dt`
- footer_str = f"{footer_str}, Due: {delivery_dt.strftime('%Y-%m-%dT%H:%M:%S')}"
+ footer_str += ', Done at'
+ embed.timestamp = delivery_dt
embed.set_footer(text=footer_str)