Returned true to allow commands in PM if they're registered as such
This commit is contained in:
parent
a744431ecb
commit
775da3ae63
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue