From 440da470ff230d2610ca306f45cb4c080287197d Mon Sep 17 00:00:00 2001 From: masterhc Date: Sat, 10 Feb 2024 22:11:29 +0000 Subject: [PATCH] AreStrikesActive correctly grabs the guild to check --- lib.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib.js b/lib.js index e25a7c0..c421bcf 100644 --- a/lib.js +++ b/lib.js @@ -1264,9 +1264,8 @@ class Strikes } async getAreStrikesActive(guildId) { - const flag = await guildsM.find({gID:guildId}).then(g=>{return g.strikes}); - if(!flag) return false; - return true; + const guild = await guildsM.find({gID:guildId}).then(g=>{return g[0]}); + return guild.strikes; } async check() {