Skip to main content

Role

Documentation


Documentation / @discordeno/bot / Role

Interface: Role

Defined in: transformers/types.ts:1693

Properties

availableForPurchase

availableForPurchase: boolean

Defined in: transformers/types.ts:1735

Whether this role is available for purchase.


color

color: number

Defined in: transformers/types.ts:1722

Integer representation of hexadecimal color code

Deprecated

the colors field is recommended for use instead of this field


colors

colors: RoleColors

Defined in: transformers/types.ts:1724

The role's color


flags

flags: RoleFlags

Defined in: transformers/types.ts:1730

Role flags combined as a bitfield


guildConnections

guildConnections: boolean

Defined in: transformers/types.ts:1737

Whether this is a guild's linked role.


guildId

guildId: bigint

Defined in: transformers/types.ts:1697

The guild id where this role is located.


hoist

hoist: boolean

Defined in: transformers/types.ts:1701

If this role is showed separately in the user listing


icon?

optional icon?: bigint

Defined in: transformers/types.ts:1715


id

id: bigint

Defined in: transformers/types.ts:1695

Role id


managed

managed: boolean

Defined in: transformers/types.ts:1705

Whether this role is managed by an integration


mentionable

mentionable: boolean

Defined in: transformers/types.ts:1707

Whether this role is mentionable


name

name: string

Defined in: transformers/types.ts:1717

Role name


permissions

permissions: Permissions

Defined in: transformers/types.ts:1703

Permission bit set


position

position: number

Defined in: transformers/types.ts:1726

Position of this role


premiumSubscriber

premiumSubscriber: boolean

Defined in: transformers/types.ts:1733


tags?

optional tags?: RoleTags

Defined in: transformers/types.ts:1732

The tags this role has


toggles?

optional toggles?: RoleToggles

Defined in: transformers/types.ts:1699

The compressed version of the boolean values on this role.


unicodeEmoji?

optional unicodeEmoji?: string

Defined in: transformers/types.ts:1728

role unicode emoji