client.on(eventName, async (arg) => { for (const eventFile of eventFiles) { const eventFunction = require(eventFile); await eventFunction(client, arg); } })