Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oasis/packages/deps.ts>ShardHeart

An object oriented Discordeno framework
Latest
interface ShardHeart
Re-export
import { type ShardHeart } from "https://deno.land/x/oasis@2.1.0/packages/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".