From d49317a596e77f407684ec61bff5c6fd895576a8 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Fri, 28 Jun 2024 23:51:39 -0600 Subject: [PATCH] aSyNc My BeLoVeD --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6f6fa29..5c27bfc 100644 --- a/index.js +++ b/index.js @@ -41,7 +41,7 @@ client.on('ready', async () => { client.invites = []; // Update 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 thisGuild = [] guild.invites.fetch().then(guildInvites => {