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
|
EXAMPLE: !nsfw add
|
||||||
RESULT: ;)"""
|
RESULT: ;)"""
|
||||||
|
|
||||||
if ctx.message.channel is discord.DMChannel:
|
if type(ctx.message.channel) is discord.DMChannel:
|
||||||
key = 'DMs'
|
key = 'DMs'
|
||||||
else:
|
else:
|
||||||
key = str(ctx.message.guild.id)
|
key = str(ctx.message.guild.id)
|
||||||
|
|
Loading…
Reference in a new issue