aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dev/servers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/dev/servers.ts')
-rw-r--r--src/commands/dev/servers.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/dev/servers.ts b/src/commands/dev/servers.ts
index a088776..7b147b9 100644
--- a/src/commands/dev/servers.ts
+++ b/src/commands/dev/servers.ts
@@ -19,7 +19,7 @@ export default class ServersCommand extends BushCommand {
public async exec(message: BushMessage | BushSlashMessage): Promise<unknown> {
const maxLength = 10;
- const guilds = client.guilds.cache.sort((a, b) => (a.memberCount < b.memberCount ? 1 : -1)).array();
+ const guilds = [...client.guilds.cache.sort((a, b) => (a.memberCount < b.memberCount ? 1 : -1)).values()];
const chunkedGuilds: Guild[][] = [];
const embeds: MessageEmbed[] = [];