From a8cd139ece2b36030a20b66feac51601fcfb34e3 Mon Sep 17 00:00:00 2001 From: bast Date: Thu, 13 Feb 2025 08:52:21 -0800 Subject: Permit !remindme with no specified content It's often desired to refer to the current discussion context without needing to explicitly write a placeholder --- bot/exts/utils/reminders.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/bot/exts/utils/reminders.py b/bot/exts/utils/reminders.py index c79e0499c..354444cb1 100644 --- a/bot/exts/utils/reminders.py +++ b/bot/exts/utils/reminders.py @@ -263,13 +263,9 @@ class Reminders(Cog): if isinstance((resolved_message := reference.resolved), discord.Message): content = resolved_message.content - # If we weren't able to get the content of a replied message - if content is None: - await send_denial(ctx, "Your reminder must have a content and/or reply to a message.") - return None - - # If the replied message has no content (e.g. only attachments/embeds) - if content == "": + # If the replied message has no content, we couldn't get the content, or no content was provided + # (e.g. only attachments/embeds) + if content is None or content == "": content = "*See referenced message.*" return content -- cgit v1.2.3