correction d'eventual probleme lié au helpall

This commit is contained in:
VALOU3336
2024-03-02 14:56:25 +01:00
parent 44f5e84484
commit 0c3ad5a9d5
2 changed files with 5 additions and 5 deletions
-2
View File
@@ -13,10 +13,8 @@ module.exports = (client) => {
const event = require(filePath);
if (typeof event.execute === 'function') {
client.on(event.name, (...args) => event.execute(...args, client));
console.log(`Event ${event.name} loaded`);
count++;
} else {
console.error(`Event ${event.name} does not have an execute method.`);
}
}
});