aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2022-04-21 19:07:43 +0100
committerGravatar GitHub <[email protected]>2022-04-21 19:07:43 +0100
commit7ced86c89e5edd95ac568aee9cd6eb749cc862fc (patch)
tree0c2eea37184a34467b3c39b72d3aa27c752dc780
parentDeal with the clean invoke being delete before replying (diff)
parentMerge pull request #2140 from python-discord/remove-wait_for-kwarg (diff)
Merge branch 'main' into supress-notfound-when-cleaning
-rw-r--r--bot/exts/moderation/incidents.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/incidents.py b/bot/exts/moderation/incidents.py
index b65f9262f..155b123ca 100644
--- a/bot/exts/moderation/incidents.py
+++ b/bot/exts/moderation/incidents.py
@@ -404,7 +404,7 @@ class Incidents(Cog):
def check(payload: discord.RawReactionActionEvent) -> bool:
return payload.message_id == incident.id
- coroutine = self.bot.wait_for(event="raw_message_delete", check=check, timeout=timeout)
+ coroutine = self.bot.wait_for("raw_message_delete", check=check, timeout=timeout)
return scheduling.create_task(coroutine, event_loop=self.bot.loop)
async def process_event(self, reaction: str, incident: discord.Message, member: discord.Member) -> None: