Latest
interface ShardEvents
import { type ShardEvents } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/fileloader/deps.ts";

Methods

optional
heartbeat(shard: Shard): unknown

A heartbeat has been send.

optional
heartbeatAck(shard: Shard): unknown

A heartbeat ACK was received.

optional
hello(shard: Shard): unknown

Shard has received a Hello payload.

optional
invalidSession(shard: Shard, resumable: boolean): unknown

The Shards session has been invalidated.

optional
resuming(shard: Shard): unknown

The shard has started a resume action.

optional
resumed(shard: Shard): unknown

The shard has successfully resumed an old session.

optional
requestedReconnect(shard: Shard): unknown

Discord has requested the Shard to reconnect.

optional
connecting(shard: Shard): unknown

The shard started to connect to Discord's gateway.

optional
connected(shard: Shard): unknown

The shard is connected with Discord's gateway.

optional
disconnected(shard: Shard): unknown

The shard has been disconnected from Discord's gateway.

optional
identifying(shard: Shard): unknown

The shard has started to identify itself to Discord.

optional
identified(shard: Shard): unknown

The shard has successfully been identified itself with Discord.

optional
message(shard: Shard, payload: DiscordGatewayPayload): unknown

The shard has received a message from Discord.

import ShardEvents
import { ShardEvents } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/fileloader/deps.ts";