diff --git a/event/listeners/guildCreate.js b/event/listeners/guildCreate.js index 70be147..d5dae1e 100644 --- a/event/listeners/guildCreate.js +++ b/event/listeners/guildCreate.js @@ -11,6 +11,8 @@ class guildCreateListener extends Listener { } async exec(guild) { + await guild.members.fetch(); + console.log(`${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner.user.username}\nOwner ID: ${guild.owner}`); const channel = this.client.channels.resolve(statsChannel); let botCount = guild.members.cache.filter(member => member.user.bot).size; diff --git a/event/listeners/guildDelete.js b/event/listeners/guildDelete.js index 9f536dd..a0e1510 100644 --- a/event/listeners/guildDelete.js +++ b/event/listeners/guildDelete.js @@ -11,6 +11,8 @@ class guildCreateListener extends Listener { } async exec(guild) { + await guild.members.fetch(); + 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 = this.client.channels.resolve(statsChannel);