From d9651a24c5f8cd1c04480cd9c554971a9ea141db Mon Sep 17 00:00:00 2001 From: loicbersier Date: Tue, 1 Jan 2019 08:50:16 +0100 Subject: [PATCH] fixed mistake --- listeners/guildCreate.js | 5 +---- listeners/guildDelete.js | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/listeners/guildCreate.js b/listeners/guildCreate.js index 08b5180d..2694a101 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 b0311d07..bc26527e 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);