Skip to content

Commit a4d576f

Browse files
committed
Fix again
1 parent 412f984 commit a4d576f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

AzzyBot-Next/Utilities/AzzyHelp.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ public static AzzyHelpRecord GetSingleCommand(IReadOnlyDictionary<string, Comman
5252
private static Dictionary<string, List<AzzyHelpRecord>> GetCommandGroups(IReadOnlyDictionary<string, Command> commands, bool adminServer, bool approvedDebug, DiscordMember member)
5353
{
5454
List<string> commandGroups = [];
55-
foreach (KeyValuePair<string, Command> kvp in commands.Where(c => c.Value.Subcommands.Count > 0))
55+
foreach (Command command in commands.Where(c => c.Value.Subcommands.Count > 0).Select(c => c.Value))
5656
{
57-
Command command = kvp.Value;
5857
if (!CheckIfMemberHasPermission(adminServer, approvedDebug, member, command.Name))
5958
continue;
6059

0 commit comments

Comments
 (0)