From b6221c6426c086be3065cc5799c397da30014a96 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Thu, 13 Oct 2022 22:30:27 -0700 Subject: [PATCH] discord: Use the right type for AutocompleteOption.Options --- discord/interaction.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/discord/interaction.go b/discord/interaction.go index 44ee03f..7f6c9b7 100644 --- a/discord/interaction.go +++ b/discord/interaction.go @@ -204,11 +204,11 @@ func (o AutocompleteOptions) Find(name string) AutocompleteOption { // AutocompleteOption is an autocompletion option in an AutocompleteInteraction. type AutocompleteOption struct { - Type CommandOptionType `json:"type"` - Name string `json:"name"` - Value json.Raw `json:"value,omitempty"` - Focused bool `json:"focused,omitempty"` - Options []AutocompleteOption `json:"options,omitempty"` + Type CommandOptionType `json:"type"` + Name string `json:"name"` + Value json.Raw `json:"value,omitempty"` + Focused bool `json:"focused,omitempty"` + Options AutocompleteOptions `json:"options,omitempty"` } // String will return the value if the option's value is a valid string.