add doc link

This commit is contained in:
ITOH
2021-04-15 12:14:27 +02:00
parent 7f85fdbac5
commit a5fe03b3ba

View File

@@ -15,7 +15,7 @@ export function heartbeat(shardId: number, interval: number) {
shard.heartbeat.lastSentAt = Date.now();
shard.heartbeat.interval = interval;
// The first heartbeat should not wait for the entire interval to pass
// The first heartbeat should not wait for the entire interval to pass: https://discord.com/developers/docs/topics/gateway#heartbeating
shard.heartbeat.timeoutId = setTimeout(
() => sendHeartbeat(shardId),
Math.floor(shard.heartbeat.interval * Math.random()),