From bfa859ac1e805268cd61fa11d5b4a059dc5d1382 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sun, 7 May 2017 21:50:28 -0500 Subject: [PATCH] Add a check for nsfw channels, assume this channel is...nsfw --- cogs/utils/utilities.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cogs/utils/utilities.py b/cogs/utils/utilities.py index 0c56f79..47459bb 100644 --- a/cogs/utils/utilities.py +++ b/cogs/utils/utilities.py @@ -34,6 +34,8 @@ 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' else: