Skip to content

Commit 6392b8f

Browse files
committed
Fix silent placeholder when editing reminder content with empty reply
1 parent eb997d2 commit 6392b8f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

bot/exts/utils/reminders.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,8 @@ async def try_get_content_from_reply(ctx: Context) -> str:
413413
# If the replied message has no content, we couldn't get the content, or no content was provided
414414
# (e.g. only attachments/embeds)
415415
if content is None or content == "":
416-
content = "*See referenced message.*"
416+
await ctx.send("The referenced message has no content, please provide content directly.")
417+
return None
417418

418419
return content
419420

@@ -614,6 +615,8 @@ async def edit_reminder_content(self, ctx: Context, id_: int, *, content: str |
614615
"""
615616
if not content:
616617
content = await self.try_get_content_from_reply(ctx)
618+
if content is None:
619+
return
617620

618621
await self.edit_reminder(ctx, id_, {"content": content})
619622

0 commit comments

Comments
 (0)