+ {COMMAND_GROUPS.map((group) => {
+ const entries = group.names
+ .map((name) => commandMap.get(name))
+ .filter((command): command is SlashCommandOption => Boolean(command))
+ if (entries.length === 0) return null
+ return (
+
+ {group.title}
+
+ {entries.map(renderCommand)}
+
+
+ )
+ })}
+
+ {otherCommands.length > 0 && (
+
+ More
+
+ {otherCommands.map(renderCommand)}
+
+
+ )}
+
+