[Core] [p]leave: Fix incorrect response handling (#2302)

This commit is contained in:
Twentysix 2018-11-24 00:42:05 +01:00 committed by Toby Harradine
parent 419008f644
commit 8abb24bc01

View File

@ -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