Skip to main content

Class: Role

Hierarchy​

Constructors​

constructor​

• new Role(client, data, guild)

Parameters​

NameType
clientClient
dataAPIRole
guildGuild

Overrides​

Base.constructor

Defined in​

packages/libcord/src/structures/Role.ts:15

Properties​

client​

• Readonly client: Client

Inherited from​

Base.client

Defined in​

packages/libcord/src/structures/Base.ts:8


color​

• color: number

Defined in​

packages/libcord/src/structures/Role.ts:12


guild​

• guild: Guild

Defined in​

packages/libcord/src/structures/Role.ts:14


hoisted​

• hoisted: boolean

Defined in​

packages/libcord/src/structures/Role.ts:10


icon​

• icon: string

Defined in​

packages/libcord/src/structures/Role.ts:13


id​

• id: string

Defined in​

packages/libcord/src/structures/Role.ts:7


integrated​

• integrated: boolean

Defined in​

packages/libcord/src/structures/Role.ts:11


mentionable​

• mentionable: boolean

Defined in​

packages/libcord/src/structures/Role.ts:9


name​

• name: string

Defined in​

packages/libcord/src/structures/Role.ts:8

Accessors​

hex​

• get hex(): string

Returns​

string

Defined in​

packages/libcord/src/structures/Role.ts:25

Methods​

edit​

▸ edit(options): Promise<Role>

Parameters​

NameType
optionsRoleEditOptions

Returns​

Promise<Role>

Defined in​

packages/libcord/src/structures/Role.ts:28