aboutsummaryrefslogtreecommitdiff
path: root/src/commands/admin
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-30 19:57:39 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-30 19:57:39 -0400
commit66173b72b2d5d33a15f667acb4cafbd03ae752a0 (patch)
tree53cd85c8b240030211d4f812632c5289ee8d62f8 /src/commands/admin
parent70fac30661ee06b07baceed6e44880b16e244626 (diff)
downloadtanzanite-66173b72b2d5d33a15f667acb4cafbd03ae752a0.tar.gz
tanzanite-66173b72b2d5d33a15f667acb4cafbd03ae752a0.tar.bz2
tanzanite-66173b72b2d5d33a15f667acb4cafbd03ae752a0.zip
fix collection changes and api types version
Diffstat (limited to 'src/commands/admin')
-rw-r--r--src/commands/admin/channelPermissions.ts2
1 files changed, 1 insertions, 1 deletions
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;