discord js core issue

Sometime halfway through guilds.map(async (guild) =>{..} ) cpu usage goes abnormally high ,ram usage increases by like 50mb and server gets stuck , it doesn't continue . And remains stuck till it is killed
Full code: https://pastecode.io/s/mk7w8hu2
the code which could be responsable: https://pastecode.io/s/mk7w8hu2
Note: In this code guilds is a array of guilds fetched by api
And i am using discord js core
I asked from help from other servers first they told me nothing seems of in the code and it could be a discordjs core issue
Was this page helpful?
discord js core issue - discord.js - Imagine ❄