From 8e2c943d24e165f841b761bbac7065afab32719e Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Fri, 24 Mar 2017 14:14:13 -0500 Subject: [PATCH] Correct issue where DM Channels were not detected --- cogs/mod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/mod.py b/cogs/mod.py index c969316..fefaed9 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -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)