Browse Source

Fixed IDs left as ints instead of strings. THANK YOU - Pikachu

Bruce Marriner 9 years ago
parent
commit
8ef21d2380
1 changed files with 3 additions and 3 deletions
  1. 3 3
      structs.go

+ 3 - 3
structs.go

@@ -4,7 +4,7 @@ package discordgo
 
 // A Message stores all data related to a specific Discord message.
 type Message struct {
-	ID              int          `json:"id,string"`
+	ID              string       `json:"id"`
 	Author          User         `json:"author"`
 	Content         string       `json:"content"`
 	Attachments     []Attachment `json:"attachments"`
@@ -14,7 +14,7 @@ type Message struct {
 	MentionEveryone bool         `json:"mention_everyone"`
 	EditedTimestamp string       `json:"edited_timestamp"`
 	Mentions        []User       `json:"mentions"`
-	ChannelID       int          `json:"channel_id,string"`
+	ChannelID       string       `json:"channel_id"`
 }
 
 // An Attachment stores data for message attachments.
@@ -35,7 +35,7 @@ type VoiceRegion struct {
 
 // A VoiceICE stores data for voice ICE servers.
 type VoiceICE struct {
-	TTL     int         `json:"ttl,string"`
+	TTL     string      `json:"ttl"`
 	Servers []ICEServer `json:"servers"`
 }