tui: fix disabled commands from appearing in slash autocomplete
parent
4cc9104942
commit
2fef02f487
|
|
@ -83,6 +83,7 @@ function init() {
|
|||
},
|
||||
slashes() {
|
||||
return visibleOptions().flatMap((option) => {
|
||||
if (option.disabled) return []
|
||||
const slash = option.slash
|
||||
if (!slash) return []
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in New Issue