From 82a26df0456108e291b1a56f9909b3517d3adc1b Mon Sep 17 00:00:00 2001 From: phxntxm Date: Tue, 7 Mar 2017 17:22:10 -0600 Subject: [PATCH] Changed the check for a private channel to look for the type --- 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 30a7d17..ee573aa 100644 --- a/cogs/utils/checks.py +++ b/cogs/utils/checks.py @@ -57,7 +57,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_private: + if ctx.message.channel is discord.DMChannel: return True # Get the member permissions so that we can compare