From a25b21d020add773e02485c83a05802ff417c74f Mon Sep 17 00:00:00 2001 From: diamondburned Date: Mon, 22 Aug 2022 02:08:28 -0700 Subject: [PATCH] api: omitempty InteractionResponseData.Choices --- api/interaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/interaction.go b/api/interaction.go index 6ccd0ff..5491bc1 100644 --- a/api/interaction.go +++ b/api/interaction.go @@ -83,7 +83,7 @@ type InteractionResponseData struct { // Choices are the results to display on autocomplete interaction events. // // During all other events, this should not be provided. - Choices AutocompleteChoices `json:"choices"` + Choices AutocompleteChoices `json:"choices,omitempty"` // CustomID used with the modal CustomID option.NullableString `json:"custom_id,omitempty"`