Skip to content

Commit

Permalink
feat(MessageAttachment): update and add new fields
Browse files Browse the repository at this point in the history
  • Loading branch information
FedorLap2006 committed May 30, 2024
1 parent 6af2451 commit 97e2886
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions message.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,15 +338,19 @@ type MessageAllowedMentions struct {

// A MessageAttachment stores data for message attachments.
type MessageAttachment struct {
ID string `json:"id"`
URL string `json:"url"`
ProxyURL string `json:"proxy_url"`
Filename string `json:"filename"`
ContentType string `json:"content_type"`
Width int `json:"width"`
Height int `json:"height"`
Size int `json:"size"`
Ephemeral bool `json:"ephemeral"`
ID string `json:"id"`
URL string `json:"url"`
ProxyURL string `json:"proxy_url"`
Filename string `json:"filename"`
Description string `json:"description,omitempty"`
ContentType string `json:"content_type,omitempty"`
Width *int `json:"width,omitempty"`
Height *int `json:"height,omitempty"`
Size int `json:"size"`
Ephemeral bool `json:"ephemeral,omitempty"`
DurationSecs float64 `json:"duration_secs,omitempty"`
Waveform string `json:"waveform,omitempty"`
Flags int `json:"flags,omitempty"`
}

// MessageEmbedFooter is a part of a MessageEmbed struct.
Expand Down

0 comments on commit 97e2886

Please sign in to comment.