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