mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-10-31 20:14:21 +00:00
discord: Use the right type for AutocompleteOption.Options
This commit is contained in:
parent
70a7a3e44f
commit
b6221c6426
|
@ -204,11 +204,11 @@ func (o AutocompleteOptions) Find(name string) AutocompleteOption {
|
||||||
|
|
||||||
// AutocompleteOption is an autocompletion option in an AutocompleteInteraction.
|
// AutocompleteOption is an autocompletion option in an AutocompleteInteraction.
|
||||||
type AutocompleteOption struct {
|
type AutocompleteOption struct {
|
||||||
Type CommandOptionType `json:"type"`
|
Type CommandOptionType `json:"type"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Value json.Raw `json:"value,omitempty"`
|
Value json.Raw `json:"value,omitempty"`
|
||||||
Focused bool `json:"focused,omitempty"`
|
Focused bool `json:"focused,omitempty"`
|
||||||
Options []AutocompleteOption `json:"options,omitempty"`
|
Options AutocompleteOptions `json:"options,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// String will return the value if the option's value is a valid string.
|
// String will return the value if the option's value is a valid string.
|
||||||
|
|
Loading…
Reference in a new issue