include unique owners in autocomplete options

This commit is contained in:
2026-01-24 00:00:01 -05:00
parent 1dae50a918
commit 780002b35f

View File

@@ -135,6 +135,9 @@ var skillGlobalAuto = sync.OnceValue(func() *autocomplete.Set[discord.Autocomple
for _, id := range global.OrderedSkills { for _, id := range global.OrderedSkills {
s := global.AllSkills[id] s := global.AllSkills[id]
set.Add(s.Name, discord.AutocompleteChoiceString{Name: s.Name, Value: s.Name}) set.Add(s.Name, discord.AutocompleteChoiceString{Name: s.Name, Value: s.Name})
if s.UniqueOwner != "" {
set.Add(s.UniqueOwner, discord.AutocompleteChoiceString{Name: s.UniqueOwner, Value: s.Name})
}
} }
return &set return &set
}) })