Skip to main content
Extremely Popular
Go to Latest
interface DiscordenoShard
Re-export
import { type DiscordenoShard } from "https://deno.land/x/discordeno@13.0.0-rc45/template/minimal/deps.ts";

Properties

id: number

The shard id number.

The websocket for this shard.

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.

safeRequestsPerShard: number

The safe number of requests that can be made while preserving some for required things like heartbeating.