From b47ff62a585684943c0d9e75140b5126de35d49c Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 1 Jun 2023 22:22:04 +0200 Subject: [PATCH] Doh, added 1 too many positional arguments --- recruitmentCog/recruitment.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/recruitmentCog/recruitment.py b/recruitmentCog/recruitment.py index de5cef8..3ccd617 100644 --- a/recruitmentCog/recruitment.py +++ b/recruitmentCog/recruitment.py @@ -223,6 +223,4 @@ class Recruitment(commands.Cog): async def get_answers(self, author: discord.Member) -> discord.Message: """Wait for the user to send a message.""" - return await self.bot.wait_for( - "message", lambda m: m.author == author and m.guild is None - ) \ No newline at end of file + return await self.bot.wait_for("message", check=lambda m: m.author == author and isinstance(m.channel, discord.DMChannel))