Custom Events
Execute Parameter
Type
Description
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