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);