aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar n0Oo0Oo0b <[email protected]>2023-08-16 09:13:49 +0800
committerGravatar n0Oo0Oo0b <[email protected]>2023-08-26 23:44:16 +0800
commitbbeda717f2e42bfb454cb914833c0ed9d824bd37 (patch)
tree7a346c201027287977ea6c410d14408d005b5870
parentApply changes from code review (diff)
Specify which action is being performed in confirmation message
-rw-r--r--bot/exts/utils/reminders.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bot/exts/utils/reminders.py b/bot/exts/utils/reminders.py
index a3150c6b8..5159db71f 100644
--- a/bot/exts/utils/reminders.py
+++ b/bot/exts/utils/reminders.py
@@ -579,9 +579,14 @@ class Reminders(Cog):
if await has_any_role_check(ctx, Roles.admins):
log.debug(f"{ctx.author} is an admin, asking for confirmation to modify someone else's.")
+ if ctx.command == self.delete_reminder:
+ modify_action = "delete"
+ else:
+ modify_action = "edit"
+
confirmation_view = ModifyReminderConfirmationView(ctx.author)
await ctx.reply(
- f"Are you sure you want to modify <@{owner_id}>'s reminder?",
+ f"Are you sure you want to {modify_action} <@{owner_id}>'s reminder?",
view=confirmation_view,
)
await confirmation_view.wait()