Skip to main content
Module

x/discord_api_types/v8.ts>GatewayOpcodes

Up to date Discord API Typings, versioned by the API version
Go to Latest
enum GatewayOpcodes
Deprecated
Deprecated

API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.

import { GatewayOpcodes } from "https://deno.land/x/discord_api_types@0.37.11/v8.ts";

Members

Dispatch

An event was dispatched

Heartbeat

A bidirectional opcode to maintain an active gateway connection. Fired periodically by the client, or fired by the gateway to request an immediate heartbeat from the client.

HeartbeatAck

Sent in response to receiving a heartbeat to acknowledge that it has been received

Hello

Sent immediately after connecting, contains the heartbeat_interval to use

Identify

Starts a new session during the initial handshake

InvalidSession

The session has been invalidated. You should reconnect and identify/resume accordingly

PresenceUpdate

Update the client's presence

Reconnect

You should attempt to reconnect and resume immediately

RequestGuildMembers

Request information about offline guild members in a large guild

Resume = 6

Resume a previous session that was disconnected

VoiceStateUpdate

Used to join/leave or move between voice channels