From 3f304f9b50bfd3db443253b119ce4d5d67dfafd5 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Tue, 1 Jan 2019 08:51:44 +0100 Subject: [PATCH] --- listeners/guildCreate.js | 2 +- listeners/guildDelete.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/listeners/guildCreate.js b/listeners/guildCreate.js index 2694a10..7233419 100644 --- a/listeners/guildCreate.js +++ b/listeners/guildCreate.js @@ -10,7 +10,7 @@ class guildCreateListener extends Listener { }); } - async exec(guild) { + async exec(guild, client) { 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() diff --git a/listeners/guildDelete.js b/listeners/guildDelete.js index bc26527..774df0f 100644 --- a/listeners/guildDelete.js +++ b/listeners/guildDelete.js @@ -10,7 +10,7 @@ class guildCreateListener extends Listener { }); } - async exec(guild) { + async exec(guild, client) { 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);