1
0
Fork 0
mirror of https://github.com/uhIgnacio/EmoteManager.git synced 2024-08-15 02:23:13 +00:00

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

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