From e0e819ec9de0588160eaf3a5e9d0ae1769be1803 Mon Sep 17 00:00:00 2001 From: Acnologla <35548489+Acnologla@users.noreply.github.com> Date: Thu, 27 Jan 2022 19:53:29 -0300 Subject: [PATCH] feat: add missing fields (#471) * Added Attachments field * go gen * Added missing fields for ApplicationCommandOption struct * Added missing fieleds for InteractionCreate struct --- application_command.go | 16 ++++++++++------ events.go | 2 ++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/application_command.go b/application_command.go index 21de359a..919fa2ab 100644 --- a/application_command.go +++ b/application_command.go @@ -23,12 +23,16 @@ type ApplicationCommandOptionChoice struct { } type ApplicationCommandOption struct { - Type OptionType `json:"type"` - Name string `json:"name"` - Description string `json:"description"` - Required bool `json:"required"` - Choices []*ApplicationCommandOptionChoice `json:"choices"` - Options []*ApplicationCommandOption `json:"options"` + Type OptionType `json:"type"` + Name string `json:"name"` + Description string `json:"description"` + Required bool `json:"required"` + Choices []*ApplicationCommandOptionChoice `json:"choices"` + Options []*ApplicationCommandOption `json:"options"` + ChannelTypes []ChannelType `json:"channel_types"` + MinValue float64 `json:"min_value"` + MaxValue float64 `json:"max_value"` + Autocomplete bool `json:"autocomplete"` } type ApplicationCommandDataOption struct { diff --git a/events.go b/events.go index 6ad202ba..ed09fd20 100644 --- a/events.go +++ b/events.go @@ -295,6 +295,8 @@ type InteractionCreate struct { Token string `json:"token"` Version int `json:"version"` Message *Message `json:"message"` + Locale string `json:"locale"` + GuildLocale string `json:"guild_locale"` ShardID uint `json:"-"` }