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

Commit

Permalink
fix: missing fields for MessageComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
andersfylling committed Jan 3, 2022
1 parent 8ce2d7c commit d8c085c
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions message.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,18 @@ const (
)

type MessageComponent struct {
Type MessageComponentType `json:"type"`
Style ButtonStyle `json:"style"`
Label string `json:"label"`
Emoji *Emoji `json:"emoji"`
CustomID string `json:"custom_id"`
Url string `json:"url"`
Disabled bool `json:"disabled"`
Components []*MessageComponent `json:"components,omitempty"`
Options []*SelectMenuOption `json:"options,omitempty"`
Type MessageComponentType `json:"type"`
Style ButtonStyle `json:"style"`
Label string `json:"label"`
Emoji *Emoji `json:"emoji"`
CustomID string `json:"custom_id"`
Url string `json:"url"`
Disabled bool `json:"disabled"`
Components []*MessageComponent `json:"components,omitempty"`
Options []*SelectMenuOption `json:"options,omitempty"`
Placeholder string `json:"placeholder"`
MinValues int `json:"min_values"`
MaxValues int `json:"max_values"`
}

var _ Copier = (*MessageComponent)(nil)
Expand Down

0 comments on commit d8c085c

Please sign in to comment.