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

x/natico/examples/deps.ts>DiscordenoShard

A powerful and customizable framework for Discordeno
Latest
interface DiscordenoShard
Re-export
import { type DiscordenoShard } from "https://deno.land/x/natico@4.0.0-pre.4/examples/deps.ts";

Properties

id: number

The shard id number.

The websocket for this shard.

resumeInterval: number

The amount of milliseconds to wait between heartbeats.

sessionId: string

The session id important for resuming connections.

previousSequenceNumber: number | null

The previous sequence number, important for resuming connections.

resuming: boolean

Whether the shard is currently resuming.

ready: boolean

Whether the shard has received the ready event.

unavailableGuildIds: Set<bigint>

The list of guild ids that are currently unavailable due to an outage.

optional
failedToLoadTimeoutId: number
heartbeat: { lastSentAt: number; lastReceivedAt: number; acknowledged: boolean; keepAlive: boolean; interval: number; intervalId: number; }

The items/requestst that are in queue to be sent to this shard websocket.

processingQueue: boolean

Whether or not the queue for this shard is being processed.

queueStartedAt: number

When the first request for this minute has been sent.

queueCounter: number

The request counter of the queue.