Base<T>
Represents a base item
Type parameters
| Name | Type |
|---|---|
T | string | number |
Hierarchy
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Base<T>(id, client)
Create a new base instance
Type parameters
| Name | Type |
|---|---|
T | string | number |
Parameters
| Name | Type | Description |
|---|---|---|
id | T | The ID of the item |
client | Client | The client |
Defined in
Properties
client
• client: Client
The bot client
Defined in
id
• id: T
The ID of the item
Defined in
Methods
toJSON
▸ toJSON(): BaseData<T>
Returns the JSON representation of the item
Returns
BaseData<T>
Defined in
update
▸ Protected update(data): void
Parameters
| Name | Type |
|---|---|
data | unknown |
Returns
void