mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Core] [p]leave: Fix incorrect response handling (#2302)
This commit is contained in:
parent
419008f644
commit
8abb24bc01
@ -457,7 +457,7 @@ class Core(commands.Cog, CoreLogic):
|
||||
|
||||
pred = MessagePredicate.yes_or_no(ctx)
|
||||
try:
|
||||
await self.bot.wait_for("message", check=MessagePredicate.yes_or_no(ctx))
|
||||
await self.bot.wait_for("message", check=pred)
|
||||
except asyncio.TimeoutError:
|
||||
await ctx.send("Response timed out.")
|
||||
return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user