aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar n0Oo0Oo0b <[email protected]>2023-08-15 22:13:34 +0800
committerGravatar n0Oo0Oo0b <[email protected]>2023-08-26 23:44:16 +0800
commit0f4bdc0cd217ed1a9c2eb0259d853442efdb8d79 (patch)
tree4c56f0436b56679b2d820855e981bd791c7db685
parentMention reminder owner in confirmation message (diff)
Apply changes from code review
-rw-r--r--bot/exts/utils/reminders.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/utils/reminders.py b/bot/exts/utils/reminders.py
index c8d7b05b9..a3150c6b8 100644
--- a/bot/exts/utils/reminders.py
+++ b/bot/exts/utils/reminders.py
@@ -47,7 +47,7 @@ ReminderMention = UnambiguousUser | discord.Role
class ModifyReminderConfirmationView(discord.ui.View):
"""A view to confirm modifying someone else's reminder by admins."""
- def __init__(self, author: discord.Member | discord.User):
+ def __init__(self, author: discord.Member):
super().__init__(timeout=REMINDER_EDIT_CONFIRMATION_TIMEOUT)
self.author = author
self.result: bool | None = None
@@ -581,7 +581,7 @@ class Reminders(Cog):
confirmation_view = ModifyReminderConfirmationView(ctx.author)
await ctx.reply(
- "Are you sure you want to modify <@{owner_id}>'s reminder?",
+ f"Are you sure you want to modify <@{owner_id}>'s reminder?",
view=confirmation_view,
)
await confirmation_view.wait()