namespace Discord.API.Voice { internal enum VoiceOpCode : byte { /// C→S - Used to associate a connection with a token. Identify = 0, /// C→S - Used to specify configuration. SelectProtocol = 1, /// C←S - Used to notify that the voice connection was successful and informs the client of available protocols. Ready = 2, /// C→S - Used to keep the connection alive and measure latency. Heartbeat = 3, /// C←S - Used to provide an encryption key to the client. SessionDescription = 4, /// C↔S - Used to inform that a certain user is speaking. Speaking = 5, /// C←S - Used to reply to a client's heartbeat. HeartbeatAck = 6, /// C→S - Used to resume a connection. Resume = 7, /// C←S - Used to inform the client the heartbeat interval. Hello = 8, /// C←S - Used to acknowledge a resumed connection. Resumed = 9, /// C←S - One or more clients have connected to the voice channel. ClientConnect = 11, /// C←S - Used to notify that a client has disconnected. ClientDisconnect = 13, /// C←S - Contains the flags of a user that connected to voice, also sent on initial connection for each existing user. ClientFlags = 18, /// C←S - Contains the platform type of a user that connected to voice, also sent on initial connection for each existing user. ClientPlatform = 20, } }