aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2020-03-02 17:42:34 +0100
committerGravatar Matteo Bertucci <[email protected]>2020-03-02 17:42:34 +0100
commitae14de8745c40ebc9e09d785c55f0fd472dc50ae (patch)
tree74c76954e1479a9adef9e32efbffe028118afba6
parentMerge branch 'master' into #364-offensive-msg-autodeletion (diff)
Remove task self cancel.
Recent changes to the scheduler requires this line to be removed.
-rw-r--r--bot/cogs/filtering.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/bot/cogs/filtering.py b/bot/cogs/filtering.py
index 2d91695f3..6c9e9a4b7 100644
--- a/bot/cogs/filtering.py
+++ b/bot/cogs/filtering.py
@@ -405,8 +405,6 @@ class Filtering(Cog, Scheduler):
await wait_until(delete_at)
await self.delete_offensive_msg(msg)
- self.cancel_task(msg['id'])
-
async def reschedule_offensive_msg_deletion(self) -> None:
"""Get all the pending message deletion from the API and reschedule them."""
await self.bot.wait_until_ready()