forked from pothtonswer/discordmuffin
41 lines
1.2 KiB
Go
41 lines
1.2 KiB
Go
package discordgo
|
|
|
|
// TODO: Eventually everything here gets moved to a better place.
|
|
|
|
type Message struct {
|
|
Id int `json:"id,string"`
|
|
Author User `json:"author"`
|
|
Content string `json:"content"`
|
|
Attachments []Attachment `json:"attachments"`
|
|
Tts bool `json:"tts"`
|
|
Embeds []Embed `json:"embeds"`
|
|
Timestamp string `json:"timestamp"`
|
|
MentionEveryone bool `json:"mention_everyone"`
|
|
EditedTimestamp string `json:"edited_timestamp"`
|
|
Mentions []User `json:"mentions"`
|
|
ChannelId int `json:"channel_id,string"`
|
|
}
|
|
|
|
type Attachment struct { //TODO figure this out
|
|
}
|
|
|
|
type Embed struct { // TODO figure this out
|
|
}
|
|
|
|
type VoiceRegion struct {
|
|
Id string `json:"id"`
|
|
Name string `json:"name"`
|
|
SampleHostname string `json:"sample_hostname"`
|
|
SamplePort int `json:"sample_port"`
|
|
}
|
|
|
|
type VoiceIce struct {
|
|
Ttl int `json:"ttl,string"`
|
|
Servers []IceServer `json:"servers"`
|
|
}
|
|
|
|
type IceServer struct {
|
|
Url string `json:"url"`
|
|
Username string `json:"username"`
|
|
Credential string `json:"credential"`
|
|
}
|