Skip to content

Commit

Permalink
Add RoleFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
sebm253 committed Jul 4, 2023
1 parent 07e3134 commit b13113e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions discord/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type Role struct {
Emoji *string `json:"unicode_emoji"`
Mentionable bool `json:"mentionable"`
Tags *RoleTag `json:"tags,omitempty"`
Flags RoleFlags `json:"flags"`
}

func (r Role) String() string {
Expand Down Expand Up @@ -54,6 +55,13 @@ type RoleTag struct {
GuildConnections bool `json:"guild_connections"`
}

type RoleFlags int

const (
RoleFlagInPrompt RoleFlags = 1 << iota
RoleFlagsNone RoleFlags = 0
)

// RoleCreate is the payload to create a Role
type RoleCreate struct {
Name string `json:"name,omitempty"`
Expand Down

0 comments on commit b13113e

Please sign in to comment.