mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-03 23:36:35 +02:00
blablabla du kaka
This commit is contained in:
@@ -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`);
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user