Fix help command not showing commands when command group permission is valid

This commit is contained in:
Hri7566 2023-12-02 17:54:18 -05:00
parent 21de4c3c82
commit 1300babfde
1 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,10 @@ export const help = new Command(
!hasPermission(
msg.user.role,
`cosmic.command.${command.id}`
) &&
!hasPermission(
msg.user.role,
`cosmic.commandGroup.${commandGroup.id}`
)
)
return;