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