From c98e2f8730f62477cb4559b6a1a84396b40154c4 Mon Sep 17 00:00:00 2001 From: Tadeo Kondrak Date: Sat, 13 Nov 2021 13:59:47 -0700 Subject: [PATCH] discord: Add Options field to AutocompleteOption This is used for subcommands. --- discord/interaction.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/discord/interaction.go b/discord/interaction.go index bc7de83..14947d0 100644 --- a/discord/interaction.go +++ b/discord/interaction.go @@ -161,10 +161,11 @@ type AutocompleteInteraction struct { // AutocompleteOption is an autocompletion option in an AutocompleteInteraction. type AutocompleteOption struct { - Type CommandOptionType `json:"type"` - Name string `json:"name"` - Value string `json:"value"` - Focused bool `json:"focused"` + Type CommandOptionType `json:"type"` + Name string `json:"name"` + Value string `json:"value"` + Focused bool `json:"focused"` + Options []AutocompleteOption `json:"options"` } // Type implements ComponentInteraction.