diff options
| author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-30 19:57:39 -0400 |
|---|---|---|
| committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-30 19:57:39 -0400 |
| commit | 66173b72b2d5d33a15f667acb4cafbd03ae752a0 (patch) | |
| tree | 53cd85c8b240030211d4f812632c5289ee8d62f8 /src/commands/dev | |
| parent | 70fac30661ee06b07baceed6e44880b16e244626 (diff) | |
| download | tanzanite-66173b72b2d5d33a15f667acb4cafbd03ae752a0.tar.gz tanzanite-66173b72b2d5d33a15f667acb4cafbd03ae752a0.tar.bz2 tanzanite-66173b72b2d5d33a15f667acb4cafbd03ae752a0.zip | |
fix collection changes and api types version
Diffstat (limited to 'src/commands/dev')
| -rw-r--r-- | src/commands/dev/servers.ts | 2 |
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[] = []; |
