mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
fetch all guilds instead of using GuildManager
This commit is contained in:
1 file changed
+2
-7
@@ -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":
|
||||
|
||||
Reference in new issue
Block a user