aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2022-04-21 17:20:01 +0100
committerGravatar GitHub <[email protected]>2022-04-21 17:20:01 +0100
commit0898c458a65fd75f2ad9aeb4d1d251bc752bbc28 (patch)
tree56bc9ed78f5af63216d915f640ae4a075ee3051e
parentMerge pull request #2136 from python-discord/fix-modpings (diff)
parentwait_for event param is now positional only (diff)
Merge pull request #2140 from python-discord/remove-wait_for-kwarg
wait_for event param is now positional only
-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: