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

x/discordeno/gateway/mod.ts>ShardState

Discord API library for Deno
Extremely Popular
Go to Latest
enum ShardState
Re-export
import { ShardState } from "https://deno.land/x/discordeno@17.0.0/gateway/mod.ts";

Members

Connected = 0

Shard is fully connected to the gateway and receiving events from Discord.

Connecting = 1

Shard started to connect to the gateway. This is only used if the shard is not currently trying to identify or resume.

Disconnected = 2

Shard got disconnected and reconnection actions have been started.

Identifying = 4

Shard is trying to identify with the gateway to create a new session.

Offline = 6

Shard got shut down studied or due to a not (self) fixable error and may not attempt to reconnect on its own.

Resuming = 5

Shard is trying to resume a session with the gateway.

Unidentified = 3

The shard is connected to the gateway but only heartbeating. At this state the shard has not been identified with discord.