fixed mistake
This commit is contained in:
parent
e88d5313ac
commit
d9651a24c5
2 changed files with 2 additions and 5 deletions
|
@ -10,8 +10,7 @@ class guildCreateListener extends Listener {
|
|||
});
|
||||
}
|
||||
|
||||
async exec(message) {
|
||||
client.on("guildCreate", async guild => {
|
||||
async exec(guild) {
|
||||
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()
|
||||
|
@ -23,8 +22,6 @@ class guildCreateListener extends Listener {
|
|||
.setTimestamp()
|
||||
|
||||
channel.send({ embed: addEmbed });
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = guildCreateListener;
|
|
@ -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***`);
|
||||
const channel = client.channels.get(statsChannel);
|
||||
|
||||
|
|
Loading…
Reference in a new issue