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

Changed the check for a private channel to look for the type

This commit is contained in:
phxntxm 2017-03-07 17:22:10 -06:00
parent 3543d205f2
commit 82a26df045

View file

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