From 1300babfde83f6da756fa8ecf4e625e75dc56e68 Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Sat, 2 Dec 2023 17:54:18 -0500 Subject: [PATCH] Fix help command not showing commands when command group permission is valid --- src/commands/commands/general/help.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commands/commands/general/help.ts b/src/commands/commands/general/help.ts index 59f3df1..45fe94f 100644 --- a/src/commands/commands/general/help.ts +++ b/src/commands/commands/general/help.ts @@ -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;