import { type ShardEvents } from "https://deno.land/x/oasis@2.1.0/packages/deps.ts";
Methods
optional
heartbeat(shard: Shard): unknownA heartbeat has been send.
optional
heartbeatAck(shard: Shard): unknownA heartbeat ACK was received.
optional
hello(shard: Shard): unknownShard has received a Hello payload.
optional
invalidSession(shard: Shard, resumable: boolean): unknownThe Shards session has been invalidated.
optional
resuming(shard: Shard): unknownThe shard has started a resume action.
optional
resumed(shard: Shard): unknownThe shard has successfully resumed an old session.
optional
requestedReconnect(shard: Shard): unknownDiscord has requested the Shard to reconnect.
optional
connecting(shard: Shard): unknownThe shard started to connect to Discord's gateway.
optional
connected(shard: Shard): unknownThe shard is connected with Discord's gateway.
optional
disconnected(shard: Shard): unknownThe shard has been disconnected from Discord's gateway.
optional
identifying(shard: Shard): unknownThe shard has started to identify itself to Discord.
optional
identified(shard: Shard): unknownThe shard has successfully been identified itself with Discord.
optional
message(shard: Shard, payload: DiscordGatewayPayload): unknownThe shard has received a message from Discord.