Class: Role
Hierarchy
-
Base
↳Role
Table of contents
Constructors
Properties
Constructors
constructor
• new Role(client
, data
): Role
Constructor function for the APIRole class.
Parameters
Name | Type | Description |
---|---|---|
client | YorClient | The YorClient instance. |
data | APIRole | The APIRole data. |
Returns
Role
Overrides
Base.constructorDefined in
src/structures/Role.ts:17Properties
API
•Private
API: GuildsAPI
Defined in
src/structures/Role.ts:7client
• client:YorClient
Inherited from
Base.clientDefined in
src/structures/Base.ts:4raw
• raw:APIRole