Merge two checks

This commit is contained in:
ReperakPro 2021-01-16 12:31:14 -06:00
parent 8b79a1cbba
commit 79073d4b62

View file

@ -36,9 +36,7 @@ class Help(commands.Cog):
command_list = ''
for command in self.bot.get_cog(cog).get_commands():
showcommand = True
if command.hidden:
showcommand = False
if command.parent:
if command.hidden or command.parent:
showcommand = False
for check in command.checks:
try: