FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

I am getting this error like 20 seconds after the bot is on but 2 days ago it was working fine and i have not added any new commands to it, and i have done some research and some people say it has to do with your pc and i have 16gb of ram but when i host it on heroku i am still getting this error so if anyone can help please help me.
DT
d.js toolkit199d ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
TP
Team Pu1s3199d ago
No description
S
Syjalo199d ago
How many servers your bot is in? Do you use sharding? How many shards do you have? Show your client options.
TP
Team Pu1s3199d ago
bots in 400 servers and dk what sharding is how would i find the loop? if there is one
P
Priyanshu.195d ago
did you fixed it coz i'm having the same problem
TP
Team Pu1s3194d ago
no i just made a new source code for the bot and moved my commands to it and os far that has done the trick
P
Priyanshu.194d ago
Didn't you tried to compare the code Like what fixed your problem
Want results from more Discord servers?
Add your server
More Posts
What method to check if invite is paused?Ping if you know the answer (pls)🐛 Issue: Permission Error (50013) When Deleting a Role with Discord Bot**Description:** I am encountering a 50013 Permission error when my Discord bot tries to delete a roget all mesages after a specific timeIm making a purge command but when i try to delete messages it says it can only delete messages thatusing rest API to update server bannerI'm trying to use the REST api to update my server banner. The problem is that it seems to work - aboort erroron latest djsInvalid bitfield in audit log channel permissions eventHey, I currently have the issue that errors like these are sent multiple times a minute into my bot'StatusHello Everyone. I am currently having trouble on setting my bots status. Would anyone have a basic errors in my codehey so im trying to make a streaming selfbot but ive been getting loads of errors whenever i try to TTSi want to create a simple discord bot, that will read user messages in specific channel and bot willBot Crashing After a non permission user runds commandclient.on('messageCreate', (message) => { // Check if the message starts with "!announce" and thExtending Guild, Channel, Member etc - TypeScriptIs it possible to extend upon Guild, Channel, Member etc objects? I have tried extending them but Does anyone have a https request bot infrastructure??djs versionsWhat version would be the best to create a discord bot in ? have any suggestions?Anyone can help me to fix old code ?Hi there! Actually i'm stuck on an old code. ```ts const fullPermissions = commandsCol.reduce< Problems in developing discord botHello everyone, I'm new here , sorry, if i do something wrong. I'm trying to develop my own bot, I'mHow would you accomplish this?I've got the following situation. My bot is attempting to collect information from a user. At first,Is it best to stay away from batch functionality?I have a use case where I have a website interface for my bot. I can track users, edit them, accept How to filter MemberUpdates for TimoutsHey, i want do Log Timeouts but there is no AuditLogEvent for example "Member.Timouts". I need to fiEmojis in buttons doesn't workCode: https://sourceb.in/dCkWGPGOOj Error is that it says it is a invalid emoji, but it literally wopermission | bitfield invalid```js if (!permissions.has("VIEW_CHANNEL")) { interaction.reply("Channel has to be viewable to