From 8bf5fc478e41d5c3f58ed928a794759725155afc Mon Sep 17 00:00:00 2001 From: Tobiah Date: Mon, 30 Mar 2020 11:37:05 -0500 Subject: [PATCH] fix(djs12): channels cache --- src/settings/DatabaseQueries/SettingsQueries.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings/DatabaseQueries/SettingsQueries.js b/src/settings/DatabaseQueries/SettingsQueries.js index 3f3f86830..35d2e4340 100644 --- a/src/settings/DatabaseQueries/SettingsQueries.js +++ b/src/settings/DatabaseQueries/SettingsQueries.js @@ -144,7 +144,7 @@ class SettingsQueries { async setGuildSetting(guild, setting, value) { if (typeof setting === 'undefined' || typeof value === 'undefined') return false; const promises = []; - guild.channels.forEach((channel) => { + guild.channels.cache.forEach((channel) => { promises.push(this.setChannelSetting(channel, setting, value)); }); return Promise.all(promises);