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:14:13 -05:00
parent e985eae89a
commit 8e2c943d24

View file

@ -178,7 +178,7 @@ class Mod:
EXAMPLE: !nsfw remove
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)