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() {