Skip to content

Commit

Permalink
added docu for user flags
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Jul 9, 2021
1 parent 40ab7ff commit eedf505
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ func (u *User) OpenDMChannel() (*DMChannel, restclient.RestError) {
return u.Disgo.RestClient().CreateDMChannel(u.ID)
}

// UserFlags defines certain flags/badges a user can have (https://discord.com/developers/docs/resources/user#user-object-user-flags)
type UserFlags int

// All UserFlags
const (
UserFlagDiscordEmployee UserFlags = 1 << iota
UserFlagPartneredServerOwner
Expand Down

0 comments on commit eedf505

Please sign in to comment.