$ MattX
$ MattX
DIAdiscord.js - Imagine an app
Created by $ MattX on 7/18/2023 in #djs-questions
function is not a function???
client.on(eventName, async (arg) => {
for (const eventFile of eventFiles) {
const eventFunction = require(eventFile);
await eventFunction(client, arg);
}
})
client.on(eventName, async (arg) => {
for (const eventFile of eventFiles) {
const eventFunction = require(eventFile);
await eventFunction(client, arg);
}
})
how to fix this?
62 replies