diff --git a/listeners/guildCreate.js b/listeners/guildCreate.js index 08b5180..2694a10 100644 --- a/listeners/guildCreate.js +++ b/listeners/guildCreate.js @@ -10,8 +10,7 @@ class guildCreateListener extends Listener { }); } - async exec(message) { - client.on("guildCreate", async guild => { + async exec(guild) { console.log(`${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner.user.username}\nOwner ID: ${guild.owner}`); const channel = client.channels.get(statsChannel); const addEmbed = new Discord.RichEmbed() @@ -23,8 +22,6 @@ class guildCreateListener extends Listener { .setTimestamp() channel.send({ embed: addEmbed }); - }) } } - module.exports = guildCreateListener; \ No newline at end of file diff --git a/listeners/guildDelete.js b/listeners/guildDelete.js index b0311d0..bc26527 100644 --- a/listeners/guildDelete.js +++ b/listeners/guildDelete.js @@ -10,7 +10,7 @@ class guildCreateListener extends Listener { }); } - async exec(message) { + async exec(guild) { console.log(`***BOT KICKED***\n${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner.user.username}\nOwner ID: ${guild.owner}\n***BOT KICKED***`); const channel = client.channels.get(statsChannel);