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 = [];
|
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 => {
|
||||||
|
|
Loading…
Reference in a new issue