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 | |
parent | 70fac30661ee06b07baceed6e44880b16e244626 (diff) | |
download | tanzanite-66173b72b2d5d33a15f667acb4cafbd03ae752a0.tar.gz tanzanite-66173b72b2d5d33a15f667acb4cafbd03ae752a0.tar.bz2 tanzanite-66173b72b2d5d33a15f667acb4cafbd03ae752a0.zip |
fix collection changes and api types version
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | src/commands/admin/channelPermissions.ts | 2 | ||||
-rw-r--r-- | src/commands/dev/servers.ts | 2 | ||||
-rw-r--r-- | yarn.lock | 17 |
4 files changed, 8 insertions, 15 deletions
diff --git a/package.json b/package.json index 41b4630..9954aa7 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "chalk": "^4.1.1", "common-tags": "^1.8.0", "discord-akairo": "NotEnoughUpdates/discord-akairo", - "discord-api-types": "0.20.2", + "discord-api-types": "0.21.0", "discord.js": "NotEnoughUpdates/discord.js", "discord.js-minesweeper": "^1.0.6", "fuse.js": "^6.4.6", diff --git a/src/commands/admin/channelPermissions.ts b/src/commands/admin/channelPermissions.ts index 1cc44ca..851e2ed 100644 --- a/src/commands/admin/channelPermissions.ts +++ b/src/commands/admin/channelPermissions.ts @@ -63,7 +63,7 @@ export default class ChannelPermissionsCommand extends BushCommand { } ): Promise<unknown> { const failedChannels = []; - for (const channel of message.guild.channels.cache.array()) { + for (const channel of message.guild.channels.cache.values()) { try { if (channel.isThread()) return; if (channel.permissionsLocked) return; 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[] = []; @@ -805,7 +805,7 @@ __metadata: chalk: ^4.1.1 common-tags: ^1.8.0 discord-akairo: NotEnoughUpdates/discord-akairo - discord-api-types: 0.20.2 + discord-api-types: 0.21.0 discord.js: NotEnoughUpdates/discord.js discord.js-minesweeper: ^1.0.6 esbuild: ^0.12.11 @@ -1340,10 +1340,10 @@ discord-akairo@NotEnoughUpdates/discord-akairo: languageName: node linkType: hard -"discord-api-types@npm:0.20.2": - version: 0.20.2 - resolution: "discord-api-types@npm:0.20.2" - checksum: e0903f90b27d082159a19f32e46c84f5b2133dd2c7640edc5b0dbd169a7a8678294dbe960a150efb6dce304c7347d73982255483b1e389309e8573263485e22a +"discord-api-types@npm:0.21.0, discord-api-types@npm:^0.21.0": + version: 0.21.0 + resolution: "discord-api-types@npm:0.21.0" + checksum: 00872f1c453964d86579e59a6aa57fc7b2025b84bf7168fb4dad1d8e218db09dc78c20758ef9e15135bbfc76c9bf51102e671c0a20530e552ad7fc6f93a971c3 languageName: node linkType: hard @@ -1354,13 +1354,6 @@ discord-akairo@NotEnoughUpdates/discord-akairo: languageName: node linkType: hard -"discord-api-types@npm:^0.21.0": - version: 0.21.0 - resolution: "discord-api-types@npm:0.21.0" - checksum: 00872f1c453964d86579e59a6aa57fc7b2025b84bf7168fb4dad1d8e218db09dc78c20758ef9e15135bbfc76c9bf51102e671c0a20530e552ad7fc6f93a971c3 - languageName: node - linkType: hard - "discord.js-minesweeper@npm:^1.0.6": version: 1.0.6 resolution: "discord.js-minesweeper@npm:1.0.6" |