Module

x/discordeno/gateway/shard/mod.ts>ShardState

Discord API library for Deno
Extremely Popular
Go to Latest
enum ShardState
import { ShardState } from "https://dotland.deno.dev/x/discordeno@17.0.0/gateway/shard/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.

import ShardState
import { ShardState } from "https://dotland.deno.dev/x/discordeno@17.0.0/gateway/shard/mod.ts";