Commit b4643476 authored by Loïc Bersier's avatar Loïc Bersier 😎
Browse files

Some more guild fetch


Signed-off-by: Loïc Bersier's avatarloicbersier <loic.bersier1@gmail.com>
parent 2880f55c
......@@ -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;
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment