Skip to content

Commit

Permalink
fix(djs12): channels cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobiah committed Mar 30, 2020
1 parent 0d689dc commit 8bf5fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/settings/DatabaseQueries/SettingsQueries.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8bf5fc4

Please sign in to comment.