Explorar o código

Removed Mentions struct, as its the same as User

Bruce Marriner %!s(int64=9) %!d(string=hai) anos
pai
achega
f3ddf16ff7
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      structs.go

+ 1 - 4
structs.go

@@ -37,13 +37,10 @@ type Message struct {
 	Timestamp       string       `json:"timestamp"`
 	MentionEveryone bool         `json:"mention_everyone"`
 	EditedTimestamp string       `json:"edited_timestamp"`
-	Mentions        []Mention    `json:"mentions"`
+	Mentions        []User       `json:"mentions"`
 	ChannelId       int          `json:"channel_id,string"`
 }
 
-type Mention struct {
-}
-
 type Attachment struct {
 }