From 69c7562c58f7b2405161651fba70b2e379c69072 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sun, 26 Mar 2017 13:46:51 -0500 Subject: [PATCH] Correct issue where the type of channel wasn't being checked --- cogs/utils/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/utils/utilities.py b/cogs/utils/utilities.py index e087992..0c56f79 100644 --- a/cogs/utils/utilities.py +++ b/cogs/utils/utilities.py @@ -34,7 +34,7 @@ def get_all_subcommands(command): async def channel_is_nsfw(channel): - if channel is discord.DMChannel: + if type(channel) is discord.DMChannel: server = 'DMs' else: server = str(channel.guild.id)