-
Howdy, Ping: 337ms | Websocket: 219ms My ping in Discord (same network as bot) is 17ms. My ping to YouTube is 4ms. Where's it getting the 337ms? Trying to work out the cause of lag when playing songs from youtube, I can't seem to work it out. I've tried a ton of Discord servers but I'm in Australia and we only have one server. I've tried switching around and it seems much worse. I don't really think it's the Sydney discord server but I have no idea, it's hard to work out when I can't make heads or tales of the bots Ping. Thanks a lot. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The first number is the Discord-based round-trip text channel ping. It calculates this by sending a message and comparing the message's Discord timestamp with your message's (the command to ping) Discord timestamp, and then editing the message to show you the result. This is roughly measuring how long it takes the bot to respond to a message in a text channel. The second number is the round-trip time it takes to get a response from Discord on a heartbeat over the websocket. The websocket is how Discord sends messages to the bot. Neither of these numbers correlates to voice channels. Every voice channel connection is an independent websocket with its own independent ping. Additionally, high ping doesn't always lead to poor song quality. Bandwidth (the amount of data that can pass at any given time) is much more impactful than ping (the delay before getting the data). The numbers you reported for ping also seem fairly normal. My own bots usually report 100ms-400ms for the first number, and 30ms-150ms for the second number. |
Beta Was this translation helpful? Give feedback.
The first number is the Discord-based round-trip text channel ping. It calculates this by sending a message and comparing the message's Discord timestamp with your message's (the command to ping) Discord timestamp, and then editing the message to show you the result. This is roughly measuring how long it takes the bot to respond to a message in a text channel.
The second number is the round-trip time it takes to get a response from Discord on a heartbeat over the websocket. The websocket is how Discord sends messages to the bot.
Neither of these numbers correlates to voice channels. Every voice channel connection is an independent websocket with its own independent ping. Additionally, hig…