include unique owners in autocomplete options
This commit is contained in:
3
skill.go
3
skill.go
@@ -135,6 +135,9 @@ var skillGlobalAuto = sync.OnceValue(func() *autocomplete.Set[discord.Autocomple
|
||||
for _, id := range global.OrderedSkills {
|
||||
s := global.AllSkills[id]
|
||||
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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user