mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-14 08:08:18 +02:00
ajoute messageCreate
This commit is contained in:
@@ -2,13 +2,13 @@ const { Events, ActivityType } = require("discord.js")
|
||||
module.exports = {
|
||||
|
||||
name : Events.ClientReady,
|
||||
async run(client) {
|
||||
async execute(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');
|
||||
}
|
||||
//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