1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Compare the channel instead of the ID

This commit is contained in:
Phxntxm 2017-04-09 17:32:50 -05:00
parent 79994c6cf4
commit 78b511c867

View file

@ -150,7 +150,7 @@ class Hangman:
await ctx.send("I have DM'd you {}, please respond there with the phrase you would like to setup".format(ctx.message.author.display_name))
def check(m):
return m.channel.id == msg.channel.id and len(m.content) < 20
return m.channel == msg.channel and len(m.content) < 20
try:
msg = await self.bot.wait_for('message', check=check, timeout=60)