Basic Setup
The required setup
Its actually surprisingly small for what its actually meant for the event handler to work
const { client_id, client_secret, token } = require("./config.json")
const { Client } = require("discord.js")
const client = new Client({ intents: [] }); // The intents might not be correct...
const PqkoDiscord = require("pqko-discord") // Calls main package
const events = new PqkoDiscord.EventsHandler(client, "eventFolder")
events.event()
Now for the actual file(s) in the "eventsFolder"
module.exports = {
name: "ready",
// rest: true // client.rest.on
// once: true // client.once Guessing it runs once
// Default to client.on
execute: (...args, client) => { // change ...args to the thing you want like oldMessage, newMessage
// Code here
}
}
Last updated