Class: Role
Hierarchy
↳
Role
Constructors
constructor
• new Role(client
, data
, guild
)
Parameters
Name | Type |
---|---|
client | Client |
data | APIRole |
guild | Guild |
Overrides
Defined in
packages/libcord/src/structures/Role.ts:15
Properties
client
• Readonly
client: Client
Inherited from
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
Name | Type |
---|---|
options | RoleEditOptions |
Returns
Promise
<Role
>