From 5d10258609a0c1b0590bfde3e342b35d832915b6 Mon Sep 17 00:00:00 2001 From: io mintz Date: Tue, 29 Sep 2020 07:58:56 +0000 Subject: [PATCH] cogs/emote: remove redundant code in cog_check --- cogs/emote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/emote.py b/cogs/emote.py index 085a0db..6d4b5fe 100644 --- a/cogs/emote.py +++ b/cogs/emote.py @@ -99,7 +99,7 @@ class Emotes(commands.Cog): return command async def cog_check(self, context): - if not context.guild or not isinstance(context.author, discord.Member): + if not context.guild: raise commands.NoPrivateMessage # we can't just do `context.command.qualified_name in self.public_commands` here