Class Event<Event>Abstract

The builder for a event.

Example

class Ready extends Event {
name = 'ready';

execute() {
console.log('Ready!');
}
}

Type Parameters

Hierarchy

  • Event

Constructors

Properties

Methods

Constructors

Properties

client: Client

The client the event belongs to.

name: keyof ClientEvents

The name of the event.

once?: boolean

Whether the event should run once.

Methods