mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
refactor: codebase cleanup + critical player state bug fixes
This commit is contained in:
1 parent
82aa296fbc
commit
fbf725d29f
15 files changed
+166
-184
No files matched your search
+2
-1
@@ -126,7 +126,8 @@ async function getGuildCount(client) {
|
||||
cachedGuildCount = total;
|
||||
guildCacheExpiresAt = Date.now() + CACHE_TTL_MS;
|
||||
return total;
|
||||
} catch {
|
||||
} catch (e) {
|
||||
logger.warn("[Stats] REST guild count fetch failed:", e?.message);
|
||||
if (typeof client.guilds?.size === "number") return client.guilds.size;
|
||||
return Object.keys(client.guilds ?? {}).length;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user