Fix help command not showing commands when command group permission is valid
This commit is contained in:
parent
21de4c3c82
commit
1300babfde
|
@ -36,6 +36,10 @@ export const help = new Command(
|
||||||
!hasPermission(
|
!hasPermission(
|
||||||
msg.user.role,
|
msg.user.role,
|
||||||
`cosmic.command.${command.id}`
|
`cosmic.command.${command.id}`
|
||||||
|
) &&
|
||||||
|
!hasPermission(
|
||||||
|
msg.user.role,
|
||||||
|
`cosmic.commandGroup.${commandGroup.id}`
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue