aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2018-07-29 13:38:29 +0200
committerGravatar Leon Sandøy <[email protected]>2018-07-29 13:38:29 +0200
commitc3c7a7f7c75d251c0af38089a4c29d7af25ad6fe (patch)
tree2d163d6eb9d3da9846dba6e530dbbaf8a8b6d4f3
parentDefault to developer role if message.author returns a User instead of a Member. (diff)
Ignore invocation deletion event for clean cog
-rw-r--r--bot/cogs/clean.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/cogs/clean.py b/bot/cogs/clean.py
index 85c9ec781..da0a5a9f2 100644
--- a/bot/cogs/clean.py
+++ b/bot/cogs/clean.py
@@ -169,6 +169,7 @@ class Clean:
# Always start by deleting the invocation
if not invocation_deleted:
+ self.mod_log.ignore_message_deletion(message.id)
await message.delete()
invocation_deleted = True
continue