discordmuffin/user.go
LEGOlord208 9b9f289415 How about no? (#356)
I don't know why somebody would do something this inefficient, but I think plain concatination is a better approach
2017-04-14 09:07:36 -07:00

19 lines
598 B
Go

package discordgo
// A User stores all data for an individual Discord user.
type User struct {
ID string `json:"id"`
Email string `json:"email"`
Username string `json:"username"`
Avatar string `json:"avatar"`
Discriminator string `json:"discriminator"`
Token string `json:"token"`
Verified bool `json:"verified"`
MFAEnabled bool `json:"mfa_enabled"`
Bot bool `json:"bot"`
}
//String returns a unique identifier of the form username#discriminator
func (u *User) String() string {
return u.Username + "#" + u.Discriminator
}