cogs/emote: remove redundant code in cog_check
This commit is contained in:
parent
aeed3b6a56
commit
5d10258609
|
@ -99,7 +99,7 @@ class Emotes(commands.Cog):
|
||||||
return command
|
return command
|
||||||
|
|
||||||
async def cog_check(self, context):
|
async def cog_check(self, context):
|
||||||
if not context.guild or not isinstance(context.author, discord.Member):
|
if not context.guild:
|
||||||
raise commands.NoPrivateMessage
|
raise commands.NoPrivateMessage
|
||||||
|
|
||||||
# we can't just do `context.command.qualified_name in self.public_commands` here
|
# we can't just do `context.command.qualified_name in self.public_commands` here
|
||||||
|
|
Loading…
Reference in New Issue