Skip to content

Commit

Permalink
πŸ“Š Replaced members.cache.size to memberCount in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
charleprr committed Nov 12, 2020
1 parent 82a0557 commit ed2752b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ client.on('shardError', (error) => Log.send(`πŸ’₯ ${error}`));
client.on('shardDisconnect', () => Log.send(`πŸ”Œ Disconnected`));
client.on('invalidated', () => Log.send(`β›” Session invalidated`));
client.on('rateLimit', () => Log.send(`🐌 Rate-limited`));
client.on('guildCreate', (guild) => Log.send(`βž• Joined '${guild.name}' (${guild.members.cache.size} members)`));
client.on('guildDelete', (guild) => Log.send(`βž– Left '${guild.name}' (${guild.members.cache.size} members)`));
client.on('guildCreate', (guild) => Log.send(`βž• Joined '${guild.name}' (${guild.memberCount} members)`));
client.on('guildDelete', (guild) => Log.send(`βž– Left '${guild.name}' (${guild.memberCount} members)`));

client.login(config.token);

0 comments on commit ed2752b

Please sign in to comment.