Skip to content

Commit

Permalink
Voice Opcodes for DAVE
Browse files Browse the repository at this point in the history
  • Loading branch information
valzargaming committed Nov 22, 2024
1 parent 0a76a35 commit 859a350
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions src/Discord/WebSockets/Op.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ class Op
public const OP_HELLO = 10;
/** Used to acknowledge heartbeats. */
public const OP_HEARTBEAT_ACK = 11;
/** Request soundboard sounds. */
public const REQUEST_SOUNDBOARD_SOUNDS = 31;


/**
* Voice Opcodes.
Expand Down Expand Up @@ -83,11 +86,32 @@ class Op
public const VOICE_HELLO = 8;
/** Acknowledge a successful session resume. */
public const VOICE_RESUMED = 9;
/** One or more clients have connected to the voice channel */
public const VOICE_CLIENT_CONNECT = 11;
/** A client has disconnected from the voice channel. */
public const VOICE_CLIENT_DISCONNECT = 13;

/** Request soundboard sounds. */
public const REQUEST_SOUNDBOARD_SOUNDS = 31;
/** A downgrade from the DAVE protocol is upcoming. */
public const VOICE_DAVE_PREPARE_TRANSITION = 21;
/** Execute a previously announced protocol transition. */
public const VOICE_DAVE_EXECUTE_TRANSITION = 22;
/** Acknowledge readiness previously announced transition. */
public const VOICE_DAVE_TRANSITION_READY = 23;
/** A DAVE protocol version or group change is upcoming. */
public const VOICE_DAVE_PREPARE_EPOCH = 24;
/** Credential and public key for MLS external sender. */
public const VOICE_DAVE_MLS_EXTERNAL_SENDER = 25;
/** MLS Key Package for pending group member. */
public const VOICE_DAVE_MLS_KEY_PACKAGE = 26;
/** MLS Proposals to be appended or revoked. */
public const VOICE_DAVE_MLS_PROPOSALS = 27;
/** MLS Commit with optional MLS Welcome messages. */
public const VOICE_DAVE_MLS_COMMIT_WELCOME = 28;
/** MLS Commit to be processed for upcoming transition. */
public const VOICE_DAVE_MLS_ANNOUNCE_COMMIT_TRANSITION = 29;
/** MLS Welcome to group for upcoming transition. */
public const VOICE_DAVE_MLS_WELCOME = 30;
/** Flag invalid commit or welcome, request re-add */
public const VOICE_DAVE_MLS_INVALID_COMMIT_WELCOME = 31;

/**
* Gateway Close Event Codes.
Expand Down

0 comments on commit 859a350

Please sign in to comment.