- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - Not a discord.js issue? Check out #1081585952654360687.
- 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!
#event sometimes got fired 2/3 or event 4 fired
29 messages · Page 1 of 1 (latest)
You most likely have more than one listener registered to the event
Show me the event handler
Is it just that event or is it all ur events you could have multiple instances running
Does the event emit 2-3 times (as in does the console.log show that often) or is it only the channel.send that executes multiple times?
@true wolf can you show the file from which you are calling loadEvents?
DuckXYZ also mentioned it above, make sure you're not running your bot multiple times
How did you determine that to be impossible?
I can run that code three times without issues, so yes, it’s definitely possible
I have the same problem and no one know how to solve the problem
up 😦
Can you specify your exact issue (best in a new post to #986520997006032896 ) because this post was about at least three different issues and there was a lot of questions to determine the actual cause. None of which you answered for your code yet
Already did a post a few months ago but no one answer because no one know how to solve the problem
Event fired 2-3-4 times for no reason
And yet you bump this post where you said nothing instead the one you actually had stuff in?
My post has been deleted, i can't track him
Same issue here: https://discord.com/channels/222078108977594368/1137513755840872449
It's maybe a discord problem, i don't know
Yeah, just found it too… it’s not deleted as you see. As I said in there for your case it sends the request three times because it doesn’t receive an ACK from discord in time. So it‘s either a network issue or something blocking the ACKs / Discord not sending them although it received and processed the request
Canada servers on vps for discord are bad ?
I have the same problem.. with a 8.1k guilds bot
Yeah and i don't know where's the problem x)
I created this post https://discord.com/channels/222078108977594368/1137513755840872449
I still haven't found a good solution.
One day it sends almost every message 2 - 3 times and then for 3 days everything is fine and sends only one.
I increased timeout to 30_000 ms in client options, but the only thing it changed is that messages are posted with 30 seconds delay.
Kinda fixed it by setting rest retries value to 0, but if something goes wrong, bot will not send the message at all
It is definitely Discord issue, because i don't see any network errors logged
It's weird because others bots don't have this issue (big bots)
For big bots more convenient in my opinion is to redirect interactions to the API endpoint. It may behave differently.
But I haven't tested it though
What’s more convenient about that? If you use the gateway anyway you should use it for interactions too. Http interactions are only good for when you don’t use the gateway at all