feat(MessageAttachment): add Waveform and DurationSecs (#1618)

This commit is contained in:
Kedas
2025-05-24 03:32:00 -07:00
committed by GitHub
parent 9fe3e5749c
commit db5be56702

View File

@@ -352,15 +352,17 @@ 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"`
ContentType string `json:"content_type"`
Width int `json:"width"`
Height int `json:"height"`
Size int `json:"size"`
Ephemeral bool `json:"ephemeral"`
DurationSecs float64 `json:"duration_secs"`
Waveform string `json:"waveform"`
}
// MessageEmbedFooter is a part of a MessageEmbed struct.