aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar bast <[email protected]>2025-02-13 08:52:21 -0800
committerGravatar bast <[email protected]>2025-02-13 08:52:21 -0800
commita8cd139ece2b36030a20b66feac51601fcfb34e3 (patch)
tree6ae53c5b233191be4ed1f19964c90338d2607c34
parentMerge 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.py10
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