From dc238213c55991654b054d3289227619de9dece1 Mon Sep 17 00:00:00 2001 From: ShadowLp174 Date: Thu, 14 May 2026 12:16:33 +0000 Subject: [PATCH] fetch all guilds instead of using GuildManager --- src/dashboard/Dashboard.mjs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/dashboard/Dashboard.mjs b/src/dashboard/Dashboard.mjs index bfee088..acbbebd 100644 --- a/src/dashboard/Dashboard.mjs +++ b/src/dashboard/Dashboard.mjs @@ -71,13 +71,8 @@ export class Dashboard { } case "allServers": { - // Return ALL guilds the bot is in (no member check). The backend - // filters by the user's own guild list to produce the mutual set. - const guilds = this.remix.client.guilds; - const guildValues = guilds && typeof guilds.values === "function" - ? [...guilds.values()] - : guilds ? Object.values(guilds) : []; - return guildValues.map(g => Dashboard.convertServer(g)); + const guilds = await this.remix.client.user.fetchGuilds(); + return guilds.map(g => Dashboard.convertServer(g)); } case "commands":