UNPKG

@averagehelper/corde

Version:

A simple library for Discord bot tests. (Republished fork to demonstrate a bugfix)

23 lines (22 loc) 600 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Events = void 0; class Events { constructor(client) { this._client = client; } /** * Emitted when the client becomes ready to start working. * @param fn Operation to be executed after client becomes ready. */ onReady(fn) { this._client.on("ready", fn); } /** * Emitted when a **bot** removes a emoji from a message; */ onMessageReactionRemoveEmoji(fn) { this._client.on("messageReactionRemoveEmoji", fn); } } exports.Events = Events;