mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-05 13:51:57 +02:00
15 lines
473 B
JavaScript
15 lines
473 B
JavaScript
const { Events, ActivityType } = require("discord.js")
|
|
module.exports = {
|
|
|
|
name : Events.ClientReady,
|
|
async run(client) {
|
|
|
|
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`);
|
|
|
|
},
|
|
}; |