diff options
author | 2025-02-13 08:52:21 -0800 | |
---|---|---|
committer | 2025-02-13 08:52:21 -0800 | |
commit | a8cd139ece2b36030a20b66feac51601fcfb34e3 (patch) | |
tree | 6ae53c5b233191be4ed1f19964c90338d2607c34 | |
parent | Merge pull request #3247 from python-discord/swfarnsworth/fix-auto-upload (diff) |
Permit !remindme with no specified content
It's often desired to refer to the current discussion context without needing to explicitly write a placeholder
-rw-r--r-- | bot/exts/utils/reminders.py | 10 |
1 files 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 |