Browse Source

chore: add missing fields in User struct (#790)

based on https://discord.com/developers/docs/resources/user

Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Manfred Touron 4 years ago
parent
commit
2fe5745a4e
1 changed files with 11 additions and 0 deletions
  1. 11 0
      user.go

+ 11 - 0
user.go

@@ -62,6 +62,17 @@ type User struct {
 	// This is a combination of bit masks; the presence of a certain flag can
 	// be checked by performing a bitwise AND between this int and the flag.
 	PublicFlags UserFlags `json:"public_flags"`
+
+	// The type of Nitro subscription on a user's account.
+	// Only available when the request is authorized via a Bearer token.
+	PremiumType int `json:"premium_type"`
+
+	// Whether the user is an Official Discord System user (part of the urgent message system).
+	System bool `json:"system"`
+
+	// The flags on a user's account.
+	// Only available when the request is authorized via a Bearer token.
+	Flags int `json:"flags"`
 }
 
 // String returns a unique identifier of the form username#discriminator