Skip to content

Commit 885b364

Browse files
authored
refactor(faq): Update ping section (#1593)
1 parent 00e9ed8 commit 885b364

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: guide/popular-topics/faq.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,11 @@ client.on(Events.GuildMemberUpdate, (oldMember, newMember) => {
309309
There are two common measurements for bot pings. The first, **websocket heartbeat**, is the average interval of a regularly sent signal indicating the healthy operation of the websocket connection the library receives events over:
310310
311311
```js
312-
interaction.reply(`Websocket heartbeat: ${client.ws.ping}ms.`);
312+
interaction.reply(`Websocket heartbeat: ${client.ping}ms.`);
313313
```
314314
315315
::: tip
316-
If you're using [sharding](/sharding/), a specific shard's heartbeat can be found on the WebSocketShard instance, accessible at `client.ws.shards.get(id).ping`.
316+
If you're using [sharding](/sharding/), a specific shard's heartbeat can be found on the WebSocketShard instance, accessible at `client.pings.get(id)`.
317317
:::
318318
319319
The second, **Roundtrip Latency**, describes the amount of time a full API roundtrip (from the creation of the command message to the creation of the response message) takes. You then edit the response to the respective value to avoid needing to send yet another message:

0 commit comments

Comments
 (0)