From dae3e4761eefc87f6bc540f92ef34d848d3cc0b2 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Thu, 18 May 2017 13:57:59 -0500 Subject: [PATCH] Reordered if statements to allow nsfw channels in DM's --- cogs/utils/utilities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/utils/utilities.py b/cogs/utils/utilities.py index 47459bb..2e297f8 100644 --- a/cogs/utils/utilities.py +++ b/cogs/utils/utilities.py @@ -34,10 +34,10 @@ def get_all_subcommands(command): async def channel_is_nsfw(channel): - if channel.is_nsfw(): - return True if type(channel) is discord.DMChannel: server = 'DMs' + elif channel.is_nsfw(): + return True else: server = str(channel.guild.id)