aSyNc My BeLoVeD

This commit is contained in:
Christopher Cookman 2024-06-28 23:51:39 -06:00
parent 795d75655c
commit d49317a596
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -41,7 +41,7 @@ client.on('ready', async () => {
client.invites = []; client.invites = [];
// Update Invites // Update Invites
console.log(`${colors.cyan("[INFO]")} Fetching Invites...`); console.log(`${colors.cyan("[INFO]")} Fetching Invites...`);
const fetchInvites = () => { const fetchInvites = async () => {
await client.guilds.cache.forEach(guild => { //on bot start, fetch all guilds and fetch all invites to store await client.guilds.cache.forEach(guild => { //on bot start, fetch all guilds and fetch all invites to store
thisGuild = [] thisGuild = []
guild.invites.fetch().then(guildInvites => { guild.invites.fetch().then(guildInvites => {