Skip to main content

DiscordRole

@discordeno/botDocs


Documentation / @discordeno/bot / DiscordRole

Interface: DiscordRole

https://discord.com/developers/docs/topics/permissions#role-object-role-structure

Properties

color

color: number

Integer representation of hexadecimal color code

Defined in

packages/types/dist/types/discord.d.ts:860


flags

flags: RoleFlags

Role flags combined as a bitfield

Defined in

packages/types/dist/types/discord.d.ts:866


hoist

hoist: boolean

If this role is showed separately in the user listing

Defined in

packages/types/dist/types/discord.d.ts:846


icon?

optional icon: string

the role emoji hash

Defined in

packages/types/dist/types/discord.d.ts:856


id

id: string

Role id

Defined in

packages/types/dist/types/discord.d.ts:844


managed

managed: boolean

Whether this role is managed by an integration

Defined in

packages/types/dist/types/discord.d.ts:850


mentionable

mentionable: boolean

Whether this role is mentionable

Defined in

packages/types/dist/types/discord.d.ts:852


name

name: string

Role name

Defined in

packages/types/dist/types/discord.d.ts:858


permissions

permissions: string

Permission bit set

Defined in

packages/types/dist/types/discord.d.ts:848


position

position: number

Position of this role (roles with the same position are sorted by id)

Defined in

packages/types/dist/types/discord.d.ts:862


tags?

optional tags: DiscordRoleTags

The tags this role has

Defined in

packages/types/dist/types/discord.d.ts:854


unicode_emoji?

optional unicode_emoji: string

role unicode emoji

Defined in

packages/types/dist/types/discord.d.ts:864