diff options
author | Vendicated <vendicated@riseup.net> | 2023-05-06 01:06:48 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2023-05-06 01:06:48 +0200 |
commit | 2834bed518a1fc1c384a93d599cc1b03555177c7 (patch) | |
tree | 40cc516bda5c55132be7f06da423cdb8727b7733 /src | |
parent | 0b2c3c834a74fb84dc8cb6b22589530f3420828b (diff) | |
download | Vencord-2834bed518a1fc1c384a93d599cc1b03555177c7.tar.gz Vencord-2834bed518a1fc1c384a93d599cc1b03555177c7.tar.bz2 Vencord-2834bed518a1fc1c384a93d599cc1b03555177c7.zip |
MemberCount: Do not count offline group lol
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/memberCount.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/memberCount.tsx b/src/plugins/memberCount.tsx index a18cf6e..78c10de 100644 --- a/src/plugins/memberCount.tsx +++ b/src/plugins/memberCount.tsx @@ -47,7 +47,7 @@ function MemberCount() { const online = (groups.length === 1 && groups[0].id === "unknown") ? 0 - : groups.reduce((count, curr) => count + curr.count, 0); + : groups.reduce((count, curr) => count + (curr.id === "offline" ? 0 : curr.count), 0); return ( <Flex id="vc-membercount" style={{ |