Skip to content

Commit db5be56

Browse files
authored
feat(MessageAttachment): add Waveform and DurationSecs (#1618)
1 parent 9fe3e57 commit db5be56

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

message.go

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -352,15 +352,17 @@ type MessageAllowedMentions struct {
352352

353353
// A MessageAttachment stores data for message attachments.
354354
type MessageAttachment struct {
355-
ID string `json:"id"`
356-
URL string `json:"url"`
357-
ProxyURL string `json:"proxy_url"`
358-
Filename string `json:"filename"`
359-
ContentType string `json:"content_type"`
360-
Width int `json:"width"`
361-
Height int `json:"height"`
362-
Size int `json:"size"`
363-
Ephemeral bool `json:"ephemeral"`
355+
ID string `json:"id"`
356+
URL string `json:"url"`
357+
ProxyURL string `json:"proxy_url"`
358+
Filename string `json:"filename"`
359+
ContentType string `json:"content_type"`
360+
Width int `json:"width"`
361+
Height int `json:"height"`
362+
Size int `json:"size"`
363+
Ephemeral bool `json:"ephemeral"`
364+
DurationSecs float64 `json:"duration_secs"`
365+
Waveform string `json:"waveform"`
364366
}
365367

366368
// MessageEmbedFooter is a part of a MessageEmbed struct.

0 commit comments

Comments
 (0)