aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-04-21 09:06:10 +0100
committerGravatar Chris Lovering <[email protected]>2022-04-21 09:06:10 +0100
commita1b66d5400054981c9c5c2a27a41526dc0dd309b (patch)
tree56bc9ed78f5af63216d915f640ae4a075ee3051e
parentMerge pull request #2136 from python-discord/fix-modpings (diff)
wait_for event param is now positional only
Closes #2139 Closes BOT-33N
-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: