Ping Bot
Guys, I can't seem to get the correct values, for example Discord API value is not good at all, it is displayed at -1ms, how can I fix this?
3 Replies
- 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!<Client>.ws.ping
is for heartbeat latency
-1
is just the default value before the first heartbeat, so it sounds like you just haven't waited long enough for the first heartbeat to have been sentThx
Hum, dude, i've problem
In this code, the bot gets stuck on the phrase that you probably won't understand since it's French, but it gets stuck on the phrase "await interaction.reply", how can I patch that?
The bot works from time to time when I restart, we would say approximately that it works one time in 5
https://starb.in/qxsArp.js
Mhm, I see