Skip to content

Commit

Permalink
Fix for human members count on server
Browse files Browse the repository at this point in the history
Fix for human members count on server
  • Loading branch information
dmatik committed Sep 12, 2020
1 parent c5df365 commit 8caf824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/server-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {

const totalOnlineMembers = message.guild.members.cache.filter((m) => m.presence.status != 'offline').size;
const totalBots = message.guild.members.cache.filter((m) => m.user.bot == true).size;
const totalHumans = message.guild.members.cache.filter((m) => m.user.bot == false).size;
const totalHumans = message.guild.memberCount - totalBots;

const totalTextChannels = message.guild.channels.cache.filter((c) => c.type === 'text').size;
const totalVoiceChannels = message.guild.channels.cache.filter((c) => c.type === 'voice').size;
Expand Down

0 comments on commit 8caf824

Please sign in to comment.