add IsAdmin to user (#151)

This commit is contained in:
Lanre Adelowo 2019-03-03 19:34:16 +01:00 committed by zeripath
parent 9c4f648599
commit e4effe4df2

View file

@ -24,6 +24,8 @@ type User struct {
AvatarURL string `json:"avatar_url"`
// User locale
Language string `json:"language"`
// Is the user an administrator
IsAdmin bool `json:"is_admin"`
}
// MarshalJSON implements the json.Marshaler interface for User, adding field(s) for backward compatibility