aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/commands/admin/channelPermissions.ts2
-rw-r--r--src/commands/dev/servers.ts2
2 files changed, 2 insertions, 2 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;
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[] = [];