Discord: Added PublicFlags to User

In the Discord API, User objects were recently given a public_flags
property that bots can access (without OAuth). I've added a field to the
User struct for this.
This commit is contained in:
Samuel Hernandez 2020-05-05 01:34:45 -04:00
parent d4fd61c24b
commit becc1e129a
No known key found for this signature in database
GPG Key ID: 4AF549A5EA2C4132
1 changed files with 3 additions and 2 deletions

View File

@ -23,8 +23,9 @@ type User struct {
Locale string `json:"locale,omitempty"`
Email string `json:"email,omitempty"`
Flags UserFlags `json:"flags,omitempty"`
Nitro UserNitro `json:"premium_type,omitempty"`
Flags UserFlags `json:"flags,omitempty"`
PublicFlags UserFlags `json:"public_flags,omitempty"`
Nitro UserNitro `json:"premium_type,omitempty"`
}
func (u User) Mention() string {