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:
parent
aeed3b6a56
commit
5d10258609
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue