Custom Events
These follow the same rules as Custom Commands, although fire when Discord events are registered.
All custom events must follow the same template:
Execute Parameter
Type
Description
client
Discord Client
The selfbot client
...eventsArgs
Any
The default args emitted on the event.
module.exports = {
name: "messageCreate", // Must be the same as the file name without .js
once: false, // If the execute should be limited to firing once (ready event)
execute(client, message) {
client.log("New Message", message.content); // The code that executes when the
}, // event is fired.
};
Last updated