diff options
author | 2023-04-18 23:14:51 +0100 | |
---|---|---|
committer | 2023-04-18 23:14:51 +0100 | |
commit | 17df6469a5154483b8bccd2cea08dfcd8a8be2a6 (patch) | |
tree | d1911cd9d71430e44698c42c36d56db3ff60f009 | |
parent | Update filtering.py to ignore edits by bots (diff) |
Update filtering.py to remove trailing whitespace
-rw-r--r-- | bot/exts/filtering/filtering.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/filtering/filtering.py b/bot/exts/filtering/filtering.py index 9fb7605d6..52401f0c3 100644 --- a/bot/exts/filtering/filtering.py +++ b/bot/exts/filtering/filtering.py @@ -235,7 +235,7 @@ class Filtering(Cog): """Filter the contents of an edited message. Don't reinvoke filters already invoked on the `before` version.""" if before.author.bot or before.webhook_id or before.type == MessageType.auto_moderation_action: return - + # Only check changes to the message contents/attachments and embed additions, not pin status etc. if all(( before.content == after.content, # content hasn't changed |