feat: Update Gateway Opcodes
This commit is contained in:
@@ -273,7 +273,7 @@ exports.Status = {
|
||||
* * HEARTBEAT_ACK: 11
|
||||
* * GUILD_SYNC: 12 [Unused]
|
||||
* * DM_UPDATE: 13 # Send => used to get dm features
|
||||
* * LAZY_REQUEST: 14 # Send => discord responds back with GUILD_MEMBER_LIST_UPDATE type SYNC...
|
||||
* * 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
|
||||
@@ -283,6 +283,11 @@ exports.Status = {
|
||||
* * STREAM_PING: 21 # Send
|
||||
* * STREAM_SET_PAUSED: 22
|
||||
* * REQUEST_APPLICATION_COMMANDS: 24
|
||||
* * EMBEDDED_ACTIVITY_LAUNCH: 25
|
||||
* * EMBEDDED_ACTIVITY_CLOSE: 26
|
||||
* * EMBEDDED_ACTIVITY_UPDATE: 27
|
||||
* * REQUEST_FORUM_UNREADS: 28
|
||||
* * REMOTE_COMMAND: 29
|
||||
* @typedef {Object<string, number>} Opcodes
|
||||
*/
|
||||
exports.Opcodes = {
|
||||
@@ -299,9 +304,8 @@ exports.Opcodes = {
|
||||
HELLO: 10, // # Receive => sent immediately after connecting, contains heartbeat and server debug information
|
||||
HEARTBEAT_ACK: 11, // # Sent => immediately following a client heartbeat that was received
|
||||
GUILD_SYNC: 12, // # Receive => guild_sync but not used anymore
|
||||
// Add some opcode from Discum: https://github.com/Merubokkusu/Discord-S.C.U.M/blob/master/discum/gateway/gateway.py#L56
|
||||
DM_UPDATE: 13, // # Send => used to get dm features
|
||||
LAZY_REQUEST: 14, // # Send => discord responds back with GUILD_MEMBER_LIST_UPDATE type SYNC...
|
||||
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
|
||||
@@ -311,6 +315,11 @@ exports.Opcodes = {
|
||||
STREAM_PING: 21, // # Send
|
||||
STREAM_SET_PAUSED: 22,
|
||||
REQUEST_APPLICATION_COMMANDS: 24, // # Send => request application/bot cmds (user, message, and slash cmds)
|
||||
EMBEDDED_ACTIVITY_LAUNCH: 25,
|
||||
EMBEDDED_ACTIVITY_CLOSE: 26,
|
||||
EMBEDDED_ACTIVITY_UPDATE: 27,
|
||||
REQUEST_FORUM_UNREADS: 28,
|
||||
REMOTE_COMMAND: 29,
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user