Skip to content

Commit

Permalink
feat(RoleParams): add UnicodeEmoji and Icon fields
Browse files Browse the repository at this point in the history
  • Loading branch information
FedorLap2006 committed Jan 2, 2024
1 parent 959d657 commit 5647103
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1281,6 +1281,12 @@ type RoleParams struct {
Permissions *int64 `json:"permissions,omitempty,string"`
// Whether this role is mentionable
Mentionable *bool `json:"mentionable,omitempty"`
// The role's unicode emoji.
// NOTE: can only be set if the guild has the ROLE_ICONS feature.
UnicodeEmoji *string `json:"unicode_emoji,omitempty"`
// The role's icon image encoded in base64.
// NOTE: can only be set if the guild has the ROLE_ICONS feature.
Icon *string `json:"icon,omitempty"`
}

// Roles are a collection of Role
Expand Down

0 comments on commit 5647103

Please sign in to comment.