From e985eae89a6754ff2bbbf259544644aad0950b02 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Fri, 24 Mar 2017 14:13:46 -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 05ba745..c969316 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -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)