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 = ''
|
command_list = ''
|
||||||
for command in self.bot.get_cog(cog).get_commands():
|
for command in self.bot.get_cog(cog).get_commands():
|
||||||
showcommand = True
|
showcommand = True
|
||||||
if command.hidden:
|
if command.hidden or command.parent:
|
||||||
showcommand = False
|
|
||||||
if command.parent:
|
|
||||||
showcommand = False
|
showcommand = False
|
||||||
for check in command.checks:
|
for check in command.checks:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue