From 78b511c8677e6c2249d77dead80160f2dca90ac7 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sun, 9 Apr 2017 17:32:50 -0500 Subject: [PATCH] Compare the channel instead of the ID --- cogs/hangman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/hangman.py b/cogs/hangman.py index ae86f7d..59f400c 100644 --- a/cogs/hangman.py +++ b/cogs/hangman.py @@ -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)