yor.ts / Exports / Role

Class: Role

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

new Role(client, data): Role Constructor function for the APIRole class.

Parameters

NameTypeDescription
clientYorClientThe YorClient instance.
dataAPIRoleThe APIRole data.

Returns

Role

Overrides

Base.constructor

Defined in

src/structures/Role.ts:17

Properties

API

Private API: GuildsAPI

Defined in

src/structures/Role.ts:7

client

client: YorClient

Inherited from

Base.client

Defined in

src/structures/Base.ts:4

raw

raw: APIRole

Defined in

src/structures/Role.ts:9