1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-01 04:24:19 +00:00

discord: Use the right type for AutocompleteOption.Options

This commit is contained in:
diamondburned 2022-10-13 22:30:27 -07:00
parent 70a7a3e44f
commit b6221c6426
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -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.