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

x/oasis/packages/deps.ts>ShardEvents

An object oriented Discordeno framework
Latest
interface ShardEvents
Re-export
import { type ShardEvents } from "https://deno.land/x/oasis@2.1.0/packages/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.