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

Correct issue where DM Channels were not detected

This commit is contained in:
Phxntxm 2017-03-24 14:13:46 -05:00
parent 078f1bbdf4
commit e985eae89a

View file

@ -151,7 +151,7 @@ class Mod:
EXAMPLE: !nsfw add
RESULT: ;)"""
if ctx.message.channel is discord.DMChannel:
if type(ctx.message.channel) is discord.DMChannel:
key = 'DMs'
else:
key = str(ctx.message.guild.id)