From 3abaf2158503b13f41876b97371dcfc6ce36a40d Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sun, 8 Oct 2023 16:05:32 -0600 Subject: [PATCH] utility.guildinfo: fix online count --- src/modules/utility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/utility.js b/src/modules/utility.js index 18cd480..0e12af1 100644 --- a/src/modules/utility.js +++ b/src/modules/utility.js @@ -1967,7 +1967,7 @@ guildinfo.callback = async function (msg, line) { const members = Array.from(guild.members.values()); const online = members.filter( - (member) => member.status != "offline" + (member) => member.status != null && member.status != "offline" ).length; const bots = members.filter((member) => member.bot).length; const verfifiedBots = members.filter(