LuaN
Explore posts from serversDIAdiscord.js - Imagine an app
•Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
I'm running multiple bots on the same machine, and the problem that has been happening is that the message.reply() function is taking a long time to execute in busy chats, like general server chats. What's even weirder is that if the bot needs to reply to a message in another chat, it will do without delay.
This is not the only place that has delay, anywhere in the application I am using .reply() or .send() it will take a long time to execute just in chats with many messages being sent by users. (various messages, like conversations , interactions, etc).
I don't know if it could have something to do with some kind of cache that discord.js does, or if it has a connection with the amount of bots that are running on my machine.
This issue starts to happen just after few hours of running the bot
18 replies