Extremely Popular
Go to Latest
interface ShardHeart
import { type ShardHeart } from "https://dotland.deno.dev/x/discordeno@17.2.0/plugins/validations/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@17.2.0/plugins/validations/deps.ts";