From c2b20a9a2949e455592f79e69c46b63d444e0a4f Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sun, 19 Mar 2017 17:43:42 -0500 Subject: [PATCH] Correct how to check if a channel is a DM Channel --- cogs/utils/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/utils/checks.py b/cogs/utils/checks.py index b73335e..58d0c2a 100644 --- a/cogs/utils/checks.py +++ b/cogs/utils/checks.py @@ -69,7 +69,7 @@ def is_owner(ctx): def custom_perms(**perms): def predicate(ctx): # Return true if this is a private channel, we'll handle that in the registering of the command - if ctx.message.channel is discord.DMChannel: + if type(ctx.message.channel) is discord.DMChannel: return True # Get the member permissions so that we can compare