aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Daniel Gu <[email protected]>2023-08-14 09:56:56 +0800
committerGravatar n0Oo0Oo0b <[email protected]>2023-08-26 23:44:16 +0800
commit1c6c02cff0af3f87cd9117f2e8d7f7b406197c20 (patch)
tree9c7d1e466b66bd322411f4a2338c95179ab07b0c
parentApply name changes from code review everywhere (diff)
Mention reminder owner in confirmation message
-rw-r--r--bot/exts/utils/reminders.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/utils/reminders.py b/bot/exts/utils/reminders.py
index 885643100..c8d7b05b9 100644
--- a/bot/exts/utils/reminders.py
+++ b/bot/exts/utils/reminders.py
@@ -570,8 +570,9 @@ class Reminders(Cog):
if e.status == 404:
return False
raise e
+ owner_id = api_response["author"]
- if api_response["author"] == ctx.author.id:
+ if owner_id == ctx.author.id:
log.debug(f"{ctx.author} is the reminder's author and passes the check.")
return True
@@ -580,7 +581,7 @@ class Reminders(Cog):
confirmation_view = ModifyReminderConfirmationView(ctx.author)
await ctx.reply(
- "Are you sure you want to modify someone else's reminder?",
+ "Are you sure you want to modify <@{owner_id}>'s reminder?",
view=confirmation_view,
)
await confirmation_view.wait()