Compare commits

...

2 commits

Author SHA1 Message Date
b4643476f1 Some more guild fetch
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
2020-11-25 14:57:39 +01:00
2880f55cfc R.I.P Brave
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
2020-11-25 14:56:55 +01:00
3 changed files with 5 additions and 1 deletions

View file

@ -18,7 +18,7 @@ class donateCommand extends Command {
const Embed = this.client.util.embed() const Embed = this.client.util.embed()
.setColor(message.member ? message.member.displayHexColor : 'NAVY') .setColor(message.member ? message.member.displayHexColor : 'NAVY')
.setTitle('Donation link') .setTitle('Donation link')
.setDescription('If you decide to donate, please use the feedback command to let the owner know about it so he can put you in the about and donator command\n[Paypal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KEMESDXL8Q5YY&source=url)\n[Brave referal program](https://brave.com/hah459)\nTip me with Brave BAT token on [my website](https://namejeff.xyz/)'); .setDescription('If you decide to donate, please use the feedback command to let the owner know about it so he can put you in the about and donator command\n[Paypal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KEMESDXL8Q5YY&source=url)');
return message.channel.send(Embed); return message.channel.send(Embed);
} }

View file

@ -11,6 +11,8 @@ class guildCreateListener extends Listener {
} }
async exec(guild) { async exec(guild) {
await guild.members.fetch();
console.log(`${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner.user.username}\nOwner ID: ${guild.owner}`); console.log(`${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner.user.username}\nOwner ID: ${guild.owner}`);
const channel = this.client.channels.resolve(statsChannel); const channel = this.client.channels.resolve(statsChannel);
let botCount = guild.members.cache.filter(member => member.user.bot).size; let botCount = guild.members.cache.filter(member => member.user.bot).size;

View file

@ -11,6 +11,8 @@ class guildCreateListener extends Listener {
} }
async exec(guild) { 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***`); 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); const channel = this.client.channels.resolve(statsChannel);