discordmuffin/users.go
Bruce Marriner 074d1bcdae Huge update to Websocket support.
Changed "Server" to "Guild" to remain consistant with Discords
API naming.
2015-11-12 23:25:48 -06:00

19 lines
536 B
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 PrivateChannel struct {
Id int `json:"id,string"`
IsPrivate bool `json:"is_private"`
LastMessageId int `json:"last_message_id,string"`
Recipient User `json:"recipient"`
} // merge with channel?
// PM function to PM a user.