Skip to main content

DiscordRole

@discordeno/bot


Documentation / @discordeno/bot / DiscordRole

Interface: DiscordRole

Defined in: packages/types/dist/types/discord.d.ts:845

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

Properties

color

color: number

Defined in: packages/types/dist/types/discord.d.ts:863

Integer representation of hexadecimal color code


flags

flags: RoleFlags

Defined in: packages/types/dist/types/discord.d.ts:869

Role flags combined as a bitfield


hoist

hoist: boolean

Defined in: packages/types/dist/types/discord.d.ts:849

If this role is showed separately in the user listing


icon?

optional icon: string

Defined in: packages/types/dist/types/discord.d.ts:859

the role emoji hash


id

id: string

Defined in: packages/types/dist/types/discord.d.ts:847

Role id


managed

managed: boolean

Defined in: packages/types/dist/types/discord.d.ts:853

Whether this role is managed by an integration


mentionable

mentionable: boolean

Defined in: packages/types/dist/types/discord.d.ts:855

Whether this role is mentionable


name

name: string

Defined in: packages/types/dist/types/discord.d.ts:861

Role name


permissions

permissions: string

Defined in: packages/types/dist/types/discord.d.ts:851

Permission bit set


position

position: number

Defined in: packages/types/dist/types/discord.d.ts:865

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


tags?

optional tags: DiscordRoleTags

Defined in: packages/types/dist/types/discord.d.ts:857

The tags this role has


unicode_emoji?

optional unicode_emoji: string

Defined in: packages/types/dist/types/discord.d.ts:867

role unicode emoji