blablabla du kaka

This commit is contained in:
VALOU3336
2024-02-13 21:56:35 +01:00
parent e9ad8e6409
commit 338a4a65b0
4 changed files with 15 additions and 7 deletions
+5 -1
View File
@@ -4,7 +4,11 @@ module.exports = {
name : Events.ClientReady,
async run(client) {
client.application.commands.set(client.commands.map(command => command.data));
if (client.commands && Array.isArray(client.commands)) {
client.application.commands.set(client.commands.map(command => command.data));
} else {
console.error('Les commandes du client sont manquantes ou mal formatées');
}
console.log(`${client.user.username} est en ligne`);
},