From 0ce7736cf29bd0a48f098b7b8dc095e74526e125 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Mon, 31 Aug 2026 21:49:47 +0100 Subject: [PATCH] Include message snapshots in on_message filters --- bot/exts/filtering/filtering.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bot/exts/filtering/filtering.py b/bot/exts/filtering/filtering.py index 0a7795f87d..7e9703c30f 100644 --- a/bot/exts/filtering/filtering.py +++ b/bot/exts/filtering/filtering.py @@ -261,6 +261,10 @@ async def on_message(self, msg: Message) -> None: for a in msg.attachments if a.content_type and "charset" in a.content_type ] + text_contents.extend( + [snapshot.content for snapshot in msg.message_snapshots] + ) + if text_contents: attachment_content = "\n\n".join(text_contents) ctx = ctx.replace(content=f"{ctx.content}\n\n{attachment_content}")