Skip to main content
Module

x/discordeno/mod.ts>ShardHeart

Discord API library for Deno
Extremely Popular
Go to Latest
interface ShardHeart
Re-export
import { type ShardHeart } from "https://deno.land/x/discordeno@13.0.0-rc45/mod.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".