Fixed IDs left as ints instead of strings. THANK YOU - Pikachu
This commit is contained in:
parent
dd1d8eabbf
commit
8ef21d2380
1 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ package discordgo
|
||||||
|
|
||||||
// A Message stores all data related to a specific Discord message.
|
// A Message stores all data related to a specific Discord message.
|
||||||
type Message struct {
|
type Message struct {
|
||||||
ID int `json:"id,string"`
|
ID string `json:"id"`
|
||||||
Author User `json:"author"`
|
Author User `json:"author"`
|
||||||
Content string `json:"content"`
|
Content string `json:"content"`
|
||||||
Attachments []Attachment `json:"attachments"`
|
Attachments []Attachment `json:"attachments"`
|
||||||
|
@ -14,7 +14,7 @@ type Message struct {
|
||||||
MentionEveryone bool `json:"mention_everyone"`
|
MentionEveryone bool `json:"mention_everyone"`
|
||||||
EditedTimestamp string `json:"edited_timestamp"`
|
EditedTimestamp string `json:"edited_timestamp"`
|
||||||
Mentions []User `json:"mentions"`
|
Mentions []User `json:"mentions"`
|
||||||
ChannelID int `json:"channel_id,string"`
|
ChannelID string `json:"channel_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// An Attachment stores data for message attachments.
|
// An Attachment stores data for message attachments.
|
||||||
|
@ -35,7 +35,7 @@ type VoiceRegion struct {
|
||||||
|
|
||||||
// A VoiceICE stores data for voice ICE servers.
|
// A VoiceICE stores data for voice ICE servers.
|
||||||
type VoiceICE struct {
|
type VoiceICE struct {
|
||||||
TTL int `json:"ttl,string"`
|
TTL string `json:"ttl"`
|
||||||
Servers []ICEServer `json:"servers"`
|
Servers []ICEServer `json:"servers"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue