Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
feat: add missing fields (#471)
Browse files Browse the repository at this point in the history
* Added Attachments field

* go gen

* Added missing fields for ApplicationCommandOption struct

* Added missing fieleds for InteractionCreate struct
  • Loading branch information
Acnologla authored Jan 27, 2022
1 parent c8099a3 commit e0e819e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 10 additions & 6 deletions application_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:"-"`
}

Expand Down

0 comments on commit e0e819e

Please sign in to comment.