aSyNc My BeLoVeD
This commit is contained in:
parent
795d75655c
commit
d49317a596
2
index.js
2
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 => {
|
||||
|
|
Loading…
Reference in a new issue