1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-01-21 03:57:26 +00:00

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

View file

@ -24,6 +24,7 @@ type User struct {
Email string `json:"email,omitempty"`
Flags UserFlags `json:"flags,omitempty"`
PublicFlags UserFlags `json:"public_flags,omitempty"`
Nitro UserNitro `json:"premium_type,omitempty"`
}