From 79073d4b62c18ddcfe5005e63178d3a8ec7d7373 Mon Sep 17 00:00:00 2001 From: ReperakPro Date: Sat, 16 Jan 2021 12:31:14 -0600 Subject: [PATCH] Merge two checks --- commands/help.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/commands/help.py b/commands/help.py index 29097a1..b1c634a 100644 --- a/commands/help.py +++ b/commands/help.py @@ -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: