Class Event

Represents an event

Constructors

Properties

Constructors

  • Creates a new event

    Parameters

    Returns Event

    Example

    module.exports.default = new Event({
    name: 'ready',
    triggerOnce: true
    }, (client) => {
    console.log(`Client is ready as ${client.user.username}`);
    });

Properties

callback: EventCallback

The callback for the event

options: EventOptions

The options for the event

Generated using TypeDoc