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

Correct how to check if a channel is a DM Channel

This commit is contained in:
Phxntxm 2017-03-19 17:43:42 -05:00
parent e158d18c4f
commit c2b20a9a29

View file

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