1
0
Fork 0
mirror of synced 2024-06-26 10:10:44 +12:00

Returned true to allow commands in PM if they're registered as such

This commit is contained in:
Phxntxm 2016-10-06 20:16:24 -05:00
parent a744431ecb
commit 775da3ae63

View file

@ -13,8 +13,9 @@ 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:
return False
return True
# Get the member permissions so that we can compare
member_perms = ctx.message.author.permissions_in(ctx.message.channel)