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

Correct issue where the type of channel wasn't being checked

This commit is contained in:
Phxntxm 2017-03-26 13:46:51 -05:00
parent 6af06cfa30
commit 69c7562c58

View file

@ -34,7 +34,7 @@ def get_all_subcommands(command):
async def channel_is_nsfw(channel):
if channel is discord.DMChannel:
if type(channel) is discord.DMChannel:
server = 'DMs'
else:
server = str(channel.guild.id)