refactor: codebase cleanup + critical player state bug fixes

This commit is contained in:
NoLogicAlan committed 2026-06-20 17:36:29 +03:00
1 parent 82aa296fbc
commit fbf725d29f
15 files changed
+166 -184

No files matched your search

+2 -1
View File
@@ -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;
}