aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2019-12-12 09:25:53 +0100
committerGravatar GitHub <[email protected]>2019-12-12 09:25:53 +0100
commitb57811ea12aa41285e4e4585b951dd105be4b275 (patch)
treeb6cd0b15c1f14ce4d0b57dc4ca8c34639a09dc7b
parentMerge branch 'master' into #364-offensive-msg-autodeletion (diff)
Add space for readability
Co-Authored-By: Mark <[email protected]>
-rw-r--r--bot/cogs/filtering.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/cogs/filtering.py b/bot/cogs/filtering.py
index 61c8f389b..39ba22354 100644
--- a/bot/cogs/filtering.py
+++ b/bot/cogs/filtering.py
@@ -436,6 +436,7 @@ class Filtering(Cog, Scheduler):
except NotFound:
log.info(f"Tried to delete message {msg['id']}, but the message can't be found "
f"(it has been probably already deleted).")
+
await self.bot.api_client.delete(f'bot/offensive-message/{msg["id"]}')
log.info(f"Deleted the offensive message with id {msg['id']}.")