Tomato6966 / Multipurpose-discord-bot

A multipurpose bot, a clan bot, a all in one bot. The one bot u need for ur server originally made as Milrato discord Bot and by Tomato6966.
https://milrato.com
MIT License
589 stars 611 forks source link

Cluster cache didn't get update #122

Closed pasindu20 closed 2 years ago

pasindu20 commented 2 years ago

I create autoresume system using this git but the cache is not updating

client.getGuildData = (guildId) => {
    return new Promise((res, rej) => {
      if(!guildId) rej(new Error("No guildId Provided"));
      if(client.guilds.cache.has(id)) return res(client.guilds.cache.get(guildId));
      console.log(`Getting Guild Data for: ${guildId}`)
      client.cluster.evalOnCluster(`this.guilds.cache.get(${guildId})`, { guildId }).catch(rej).then(d => res(d))
    })
  }
pasindu20 commented 2 years ago

issue fix it had some errors on quickmongo db