DiscordRole
Documentation / @discordeno/types / DiscordRole
Interface: DiscordRole
Defined in: discord/permissions.ts:113
https://docs.discord.com/developers/topics/permissions#role-object-role-structure
Properties
color
color:
number
Defined in: discord/permissions.ts:122
RGB color value, default: 0
Deprecated
the colors field is recommended for use instead of this field
colors
colors:
DiscordRoleColors
Defined in: discord/permissions.ts:124
The role's color
flags
flags:
RoleFlags
Defined in: discord/permissions.ts:142
Role flags combined as a bitfield
hoist
hoist:
boolean
Defined in: discord/permissions.ts:126
If this role is showed separately in the user listing
icon?
optionalicon?:string
Defined in: discord/permissions.ts:128
the role emoji hash
id
id:
string
Defined in: discord/permissions.ts:115
Role id
managed
managed:
boolean
Defined in: discord/permissions.ts:136
Whether this role is managed by an integration
mentionable
mentionable:
boolean
Defined in: discord/permissions.ts:138
Whether this role is mentionable
name
name:
string
Defined in: discord/permissions.ts:117
Role name
permissions
permissions:
string
Defined in: discord/permissions.ts:134
Permission bit set
position
position:
number
Defined in: discord/permissions.ts:132
Position of this role (roles with the same position are sorted by id)
tags?
optionaltags?:DiscordRoleTags
Defined in: discord/permissions.ts:140
The tags this role has
unicode_emoji?
optionalunicode_emoji?:string
Defined in: discord/permissions.ts:130
role unicode emoji