From 6f476e795ae7f5e84255fc4e44a87f109093d7c6 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Thu, 29 Apr 2021 17:57:22 -0600 Subject: [PATCH] more bug --- util/vcloop.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/vcloop.js b/util/vcloop.js index 244d8f7..72e3b35 100644 --- a/util/vcloop.js +++ b/util/vcloop.js @@ -1,7 +1,7 @@ const Monitors = require('../models/monitor'); module.exports = async client => { - client.misc.cache.inVC.forEach(m => { + client.misc.cache.inVC.forEach(async m => { if (client.misc.cache.monitEnabled.includes(client.misc.cache.VCG[m])) { if (!client.misc.cache.monit[client.misc.cache.VCG[m]]) { let tm = await Monitors.findOne({gid: client.misc.cache.VCG[m]}); @@ -23,7 +23,7 @@ module.exports = async client => { } }); - client.misc.cache.activeVC.forEach(vc => { + client.misc.cache.activeVC.forEach(async vc => { let g = client.guilds.cache.filter(g => g.channels.cache.has(vc)).first(); if (!g) {return;} g = g.id;