From 7ec67b07d2d180b1288ef2711e1e77489b07b90e Mon Sep 17 00:00:00 2001 From: Victor Souza Date: Fri, 14 Apr 2023 20:31:36 -0300 Subject: [PATCH] Add CommandType field to ApplicationCommandInteractionData (#1362) * Add the CommandType field to ApplicationCommandInteractionData * Remove unnecessary comment * Change order of the fields --------- Co-authored-by: Fedor Lapshin --- interactions.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/interactions.go b/interactions.go index 627e0c3..6106856 100644 --- a/interactions.go +++ b/interactions.go @@ -314,9 +314,10 @@ type InteractionData interface { // ApplicationCommandInteractionData contains the data of application command interaction. type ApplicationCommandInteractionData struct { - ID string `json:"id"` - Name string `json:"name"` - Resolved *ApplicationCommandInteractionDataResolved `json:"resolved"` + ID string `json:"id"` + Name string `json:"name"` + CommandType ApplicationCommandType `json:"type"` + Resolved *ApplicationCommandInteractionDataResolved `json:"resolved"` // Slash command options Options []*ApplicationCommandInteractionDataOption `json:"options"`