discordmuffin/structs.go
Bruce Marriner 66da5a3ae4 Created a client.go with low level access functions and started
working on "easy access" methods in each data structure that point
to the low level client.go functions.  Added channel.go, server.go
2015-11-03 08:35:58 -06:00

50 lines
1.1 KiB
Go

package discordgo
type User struct {
Id int `json:"id,string"`
Email string `json:"email"`
Username string `json:"username"`
Avatar string `json:"Avatar"`
Verified bool `json:"verified"`
Discriminator string `json:"discriminator"`
}
type Role struct {
Id int `json:"id,string"`
Name string `json:"name"`
Managed bool `json:"managed"`
Color int `json:"color"`
Hoist bool `json:"hoist"`
Position int `json:"position"`
Permissions int `json:"permissions"`
}
type Message struct {
Attachments []Attachment
Tts bool
Embeds []Embed
Timestamp string
Mention_everyone bool
Id int `json:",string"`
Edited_timestamp string
Author *Author
Content string
Channel_id int `json:",string"`
Mentions []Mention
}
type Mention struct {
}
type Attachment struct {
}
type Embed struct {
}
type Author struct {
Username string
Discriminator int `json:",string"`
Id int `json:",string"`
Avatar string
}