From c698baeecd0b51c6b74f072ffbe7274474834f2e Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Thu, 2 Jun 2022 19:49:09 +0800 Subject: [PATCH] fix --- commands.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/commands.ts b/commands.ts index 33c0a10..14f1b97 100644 --- a/commands.ts +++ b/commands.ts @@ -94,8 +94,15 @@ We highly encourage asking authors that opted out to stop doing so. { title: `${mems.length} total members!`, description: `${ - mems.filter((m) => m.presence?.status !== 'offline').length - } online members`, + mems.filter( + (m) => + m.presence?.status === 'online' || + m.presence?.status === 'idle' || + m.presence?.status === 'dnd' + ).length + } online members, and ${ + mems.filter((m) => m.presence?.status === 'invisible').length + } members that are pretending to be offline`, color: 'GOLD', }, ],