Add hidden property to slash commands (#7797)

This commit is contained in:
DeWitt Clinton
2025-09-05 13:38:36 -07:00
committed by GitHub
parent 0e284457be
commit c1b8708ef5
8 changed files with 70 additions and 22 deletions
@@ -443,6 +443,7 @@ export function useSlashCompletion(props: UseSlashCompletionProps): {
commands.filter(
(cmd) =>
cmd.description &&
!cmd.hidden &&
(cmd.name.toLowerCase().startsWith(partial.toLowerCase()) ||
cmd.altNames?.some((alt) =>
alt.toLowerCase().startsWith(partial.toLowerCase()),