From eedf505cbbce8d342016cdfa711ad5e88c3e5a84 Mon Sep 17 00:00:00 2001 From: TopiSenpai Date: Fri, 9 Jul 2021 02:35:49 +0200 Subject: [PATCH] added docu for user flags --- api/user.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/user.go b/api/user.go index d29cb5da..025abcd2 100644 --- a/api/user.go +++ b/api/user.go @@ -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