Events are the same as they are in discord.js with the excecption of one thing: we pass client to every event.

They will always follow this structure. You will always name the file the event you are trying to use. ex: ready event : ready.js

exports.run = (client, ...args) => { // code here };


static run(client, args)

The part of the extendable that is added to the class.
Name Type Description
client KomadaClient The Komada client
args Array The arguments normally given to the Discord.js event.

This will create a ready event that sets the status to the below string. You would name this "ready.js"

exports.run = (client) => {
  client.user.setStatus(`Komada | ${require("komada").version} `);