Skip to content

Commit de575c1

Browse files
committed
Add AttachmentID to UnfurledMediaItem
discord/discord-api-docs#7611
1 parent 16a4657 commit de575c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

discord/component.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,8 @@ type UnfurledMediaItem struct {
675675
Width int `json:"width,omitempty"`
676676
// ContentType is the content type of the media item. This can't be set by bots.
677677
ContentType string `json:"content_type,omitempty"`
678+
// AttachmentID is the id of the uploaded attachment. This can't be set by bots.
679+
AttachmentID snowflake.ID `json:"attachment_id,omitempty"`
678680
// LoadingState is the loading state of the media item. This can't be set by bots.
679681
LoadingState UnfurledMediaItemLoadingState `json:"loading_state,omitempty"`
680682
}

0 commit comments

Comments
 (0)