fixed my dumb mistake

This commit is contained in:
Loïc Bersier 2018-09-08 20:20:20 +02:00
parent 72f071ce1a
commit 7c49f359f1

View file

@ -29,12 +29,10 @@ client.registry
client.user.setActivity(activity); client.user.setActivity(activity);
const channel = client.channels.get('487766113292124160'); const channel = client.channels.get('487766113292124160');
channel.send(`Ready to serve in ${client.channels.size} channels on ${client.guilds.size} servers, for a total of ${client.users.size} users. ${client.readyAt}`); channel.send(`Ready to serve in ${client.channels.size} channels on ${client.guilds.size} servers, for a total of ${client.users.size} users. ${client.readyAt}`);
client.on("guildCreate", guild => {
console.log(`${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner}`)
});
}); });
// when bot join a guild send embeds with detail about it // when bot join a guild send embeds with detail about it
client.on("guildCreate", guild => { client.on("guildCreate", guild => {
console.log(`${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner}`)
const channel = client.channels.get('487766113292124160'); const channel = client.channels.get('487766113292124160');
const exampleEmbed = { const exampleEmbed = {
color: 0x0099ff, color: 0x0099ff,