Events are the same as they are in discord.js with the excecption of one thing: we pass client to every event.
Example
exports.run = (client, ...args) => { // code here };
Methods
-
static run(client, args)
-
The part of the extendable that is added to the class.
Parameters:
Name Type Description client
KomadaClient The Komada client args
Array The arguments normally given to the Discord.js event. Example
exports.run = (client) => { client.user.setStatus(`Komada | ${require("komada").version} `); }