Correct issue where DM Channels were not detected
This commit is contained in:
parent
078f1bbdf4
commit
e985eae89a
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue