tui: fix disabled commands from appearing in slash autocomplete
This commit is contained in:
parent
4cc9104942
commit
2fef02f487
1 changed files with 1 additions and 0 deletions
|
|
@ -83,6 +83,7 @@ function init() {
|
||||||
},
|
},
|
||||||
slashes() {
|
slashes() {
|
||||||
return visibleOptions().flatMap((option) => {
|
return visibleOptions().flatMap((option) => {
|
||||||
|
if (option.disabled) return []
|
||||||
const slash = option.slash
|
const slash = option.slash
|
||||||
if (!slash) return []
|
if (!slash) return []
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue