Doh, added 1 too many positional arguments

This commit is contained in:
unknown 2023-06-01 22:22:04 +02:00
parent 60581601c6
commit b47ff62a58

View File

@ -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
)
return await self.bot.wait_for("message", check=lambda m: m.author == author and isinstance(m.channel, discord.DMChannel))