We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae72a64 commit f7d9242Copy full SHA for f7d9242
discord/component.go
@@ -1087,6 +1087,8 @@ type FileComponent struct {
1087
// File only supports attachment://<filename> references
1088
File UnfurledMediaItem `json:"file"`
1089
Spoiler bool `json:"spoiler,omitempty"`
1090
+ Name string `json:"name,omitempty"`
1091
+ Size int `json:"size,omitempty"`
1092
}
1093
1094
func (c FileComponent) MarshalJSON() ([]byte, error) {
0 commit comments