Module

x/discordeno/plugins/helpers/deps.ts>ShardHeart

Discord API library for Deno
Latest
interface ShardHeart
import { type ShardHeart } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/helpers/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".

import ShardHeart
import { ShardHeart } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/helpers/deps.ts";