utility.guildinfo: fix online count

This commit is contained in:
Cynthia Foxwell 2023-10-08 16:05:32 -06:00
parent 74ee9c15f9
commit 3abaf21585

View file

@ -1967,7 +1967,7 @@ guildinfo.callback = async function (msg, line) {
const members = Array.from(guild.members.values()); const members = Array.from(guild.members.values());
const online = members.filter( const online = members.filter(
(member) => member.status != "offline" (member) => member.status != null && member.status != "offline"
).length; ).length;
const bots = members.filter((member) => member.bot).length; const bots = members.filter((member) => member.bot).length;
const verfifiedBots = members.filter( const verfifiedBots = members.filter(