From 1c6c02cff0af3f87cd9117f2e8d7f7b406197c20 Mon Sep 17 00:00:00 2001 From: Daniel Gu Date: Mon, 14 Aug 2023 09:56:56 +0800 Subject: Mention reminder owner in confirmation message --- bot/exts/utils/reminders.py | 5 +++-- 1 file 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() -- cgit v1.2.3