From 66173b72b2d5d33a15f667acb4cafbd03ae752a0 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Fri, 30 Jul 2021 19:57:39 -0400 Subject: fix collection changes and api types version --- src/commands/admin/channelPermissions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands/admin') 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 { 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; -- cgit