Skip to content

Commit f7d9242

Browse files
committed
Add Name and Size to FileComponent
discord/discord-api-docs#7609
1 parent ae72a64 commit f7d9242

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
@@ -1087,6 +1087,8 @@ type FileComponent struct {
10871087
// File only supports attachment://<filename> references
10881088
File UnfurledMediaItem `json:"file"`
10891089
Spoiler bool `json:"spoiler,omitempty"`
1090+
Name string `json:"name,omitempty"`
1091+
Size int `json:"size,omitempty"`
10901092
}
10911093

10921094
func (c FileComponent) MarshalJSON() ([]byte, error) {

0 commit comments

Comments
 (0)