diff --git a/src/Discord/WebSockets/Op.php b/src/Discord/WebSockets/Op.php index 5e315b649..8abe5461d 100644 --- a/src/Discord/WebSockets/Op.php +++ b/src/Discord/WebSockets/Op.php @@ -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. @@ -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.