cogs/emote: remove redundant code in cog_check

This commit is contained in:
io mintz 2020-09-29 07:58:56 +00:00
parent aeed3b6a56
commit 5d10258609
1 changed files with 1 additions and 1 deletions

View File

@ -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