fixed mistake

This commit is contained in:
loicbersier 2019-01-01 08:50:16 +01:00
parent e88d5313ac
commit d9651a24c5
2 changed files with 2 additions and 5 deletions

View file

@ -10,8 +10,7 @@ class guildCreateListener extends Listener {
}); });
} }
async exec(message) { async exec(guild) {
client.on("guildCreate", async guild => {
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 = client.channels.get(statsChannel); const channel = client.channels.get(statsChannel);
const addEmbed = new Discord.RichEmbed() const addEmbed = new Discord.RichEmbed()
@ -23,8 +22,6 @@ class guildCreateListener extends Listener {
.setTimestamp() .setTimestamp()
channel.send({ embed: addEmbed }); channel.send({ embed: addEmbed });
})
} }
} }
module.exports = guildCreateListener; module.exports = guildCreateListener;

View file

@ -10,7 +10,7 @@ class guildCreateListener extends Listener {
}); });
} }
async exec(message) { async exec(guild) {
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 = client.channels.get(statsChannel); const channel = client.channels.get(statsChannel);