Преглед на файлове

Add attachments fields.

Chris Rhodes преди 9 години
родител
ревизия
a639011a06
променени са 1 файла, в които са добавени 8 реда и са изтрити 1 реда
  1. 8 1
      message.go

+ 8 - 1
message.go

@@ -30,7 +30,14 @@ type Message struct {
 }
 
 // An Attachment stores data for message attachments.
-type Attachment struct { //TODO figure this out
+type Attachment struct {
+	Width    int    `json:"width"`
+	URL      string `json:"url"`
+	Size     int    `json:"size"`
+	ProxyURL string `json:"proxy_url"`
+	ID       string `json:"id"`
+	Height   int    `json:"height"`
+	Filename string `json:"filename"`
 }
 
 // An Embed stores data for message embeds.