Skip to content

Opcodes

typedef · Source

The Opcodes sent to the Gateway:

  • DISPATCH: 0
  • HEARTBEAT: 1
  • IDENTIFY: 2
  • STATUS_UPDATE: 3
  • VOICE_STATE_UPDATE: 4
  • VOICE_GUILD_PING: 5
  • RESUME: 6
  • RECONNECT: 7
  • REQUEST_GUILD_MEMBERS: 8
  • INVALID_SESSION: 9
  • HELLO: 10
  • HEARTBEAT_ACK: 11
  • GUILD_SYNC: 12 [Unused]
  • DM_UPDATE: 13 # Send => used to get dm features
  • GUILD_SUBSCRIPTIONS: 14 # Send => discord responds back with GUILD_MEMBER_LIST_UPDATE type SYNC...
  • LOBBY_CONNECT: 15
  • LOBBY_DISCONNECT: 16
  • LOBBY_VOICE_STATE_UPDATE: 17 # Receive
  • STREAM_CREATE: 18
  • STREAM_DELETE: 19
  • STREAM_WATCH: 20
  • STREAM_PING: 21 # Send
  • STREAM_SET_PAUSED: 22
  • LFG_SUBSCRIPTIONS: 23 [Unused]
  • REQUEST_GUILD_APPLICATION_COMMANDS: 24 [Unused]
  • EMBEDDED_ACTIVITY_LAUNCH: 25 => Launch an embedded activity in a voice channel or call.
  • EMBEDDED_ACTIVITY_CLOSE: 26 => Stop an embedded activity.
  • EMBEDDED_ACTIVITY_UPDATE: 27 => Update an embedded activity.
  • REQUEST_FORUM_UNREADS: 28 => Request forum channel unread counts.
  • REMOTE_COMMAND: 29 => Send a remote command to an embedded (Xbox, PlayStation) voice session.
  • GET_DELETED_ENTITY_IDS_NOT_MATCHING_HASH: 30 => Request deleted entity IDs not matching a given hash for a guild.
  • REQUEST_SOUNDBOARD_SOUNDS: 31
  • SPEED_TEST_CREATE: 32 => Create a voice speed test.
  • SPEED_TEST_DELETE: 33 => Delete a voice speed test.
  • REQUEST_LAST_MESSAGES: 34 => Request last messages for a guild's channels.
  • SEARCH_RECENT_MEMBERS: 35 => ~ Opcode 8 (Member Safety)
  • REQUEST_CHANNEL_STATUSES: 36 => Request Voice Channel status.
  • GUILD_SUBSCRIPTIONS_BULK: 37 => ~ Opcode 14
  • REQUEST_CHANNEL_INFO: 43 => Request ephemeral voice channel information. Type: Object<string, number>

Unofficial software. Not affiliated with or supported by Discord.