mirror of
https://github.com/TotalFreedomMC/TotalFreedomBot.git
synced 2024-12-22 15:44:57 +00:00
Merge two checks
This commit is contained in:
parent
8b79a1cbba
commit
79073d4b62
1 changed files with 1 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue