Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
interface ShardHeart
Re-export
import { type ShardHeart } from "https://deno.land/x/discordeno@17.2.0/template/beginner/deps.ts";

Properties

acknowledged: boolean

Whether or not the heartbeat was acknowledged by Discord in time.

interval: number

Interval between heartbeats requested by Discord.

optional
intervalId: number

Id of the interval, which is used for sending the heartbeats.

optional
lastAck: number

Unix (in milliseconds) timestamp when the last heartbeat ACK was received from Discord.

optional
lastBeat: number

Unix timestamp (in milliseconds) when the last heartbeat was sent.

optional
rtt: number

Round trip time (in milliseconds) from Shard to Discord and back. Calculated using the heartbeat system. Note: this value is undefined until the first heartbeat to Discord has happened.

optional
timeoutId: number

Id of the timeout which is used for sending the first heartbeat to Discord since it's "special".