Skip to main content
Module

x/denord/mod.ts>GatewayOpCode

🗣 Discord API module
Latest
enum GatewayOpCode
import { GatewayOpCode } from "https://deno.land/x/denord@0.1.0/mod.ts";

Members

Dispatch = 0

(Receive) An event was dispatched.

Heartbeat = 1

(Send/Receive) Fired periodically by the client to keep the connection alive.

HeartbeatAck = 11

(Receive) Sent in response to receiving a heartbeat to acknowledge that it has been received.

Hello = 10

(Receive) Sent immediately after connecting, contains the heartbeat_interval to use.

Identify = 2

(Send) Starts a new session during the initial handshake.

InvalidSession = 9

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

PresenceUpdate = 3

(Send) Update the client's presence.

Reconnect = 7

(Receive) You should attempt to reconnect and resume immediately.

RequestGuildMembers = 8

(Send) Request information about offline guild members in a large guild.

Resume = 6

(Send) Resume a previous session that was disconnected.

VoiceStateUpdate = 4

(Send) Used to join/leave or move between voice channels.