BaseClient

export class BaseClient extends EventEmitter implements AsyncDisposable
export class BaseClient extends EventEmitter implements AsyncDisposable
The base class for all clients.

Extends

EventEmitter

Implements

AsyncDisposable
constructor(options?)
Constructs a new instance of the BaseClient class
NameTypeOptionalDescription
optionsClientOptions | WebhookClientOptionsYesNone
The options the client was instantiated with
rest:REST
The REST manager of the client
[Symbol.asyncDispose]():Promise<void>
deleteWebhook(id, options?):Promise<void>
Deletes a webhook.
NameTypeOptionalDescription
idSnowflakeNoThe webhook's id
optionsWebhookDeleteOptionsYesOptions for deleting the webhook
destroy():void
Destroys all assets used by the base client.
toJSON(...props):unknown
NameTypeOptionalDescription
...propsRecord<string, boolean | string>[]NoNone