Update help.py

This commit is contained in:
Elmon11 2021-01-07 20:36:06 +01:00 committed by GitHub
parent 16059bff13
commit 8b79a1cbba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ class Help(commands.Cog):
@commands.command(aliases=['h', '?'])
async def help(self, ctx, page=1):
'Displays the help command'
"""Displays the help command"""
em = discord.Embed()
em.title = 'Help Command'
cog_list = [c for c in self.bot.cogs.keys()]
@ -43,7 +43,7 @@ class Help(commands.Cog):
for check in command.checks:
try:
check(ctx)
except:
except commands.MissingPermissions:
showcommand = False
if showcommand:
command_list += f'**{ctx.prefix}{command.name}** - {command.help}\n'