Browse Source

Update voice OP codes

pull/834/head
Hsu Still GitHub 8 years ago
parent
commit
270b673ec0
1 changed files with 11 additions and 3 deletions
  1. +11
    -3
      src/Discord.Net.WebSocket/API/Voice/VoiceOpCode.cs

+ 11
- 3
src/Discord.Net.WebSocket/API/Voice/VoiceOpCode.cs View File

@@ -11,11 +11,19 @@ namespace Discord.API.Voice
Ready = 2, Ready = 2,
/// <summary> C→S - Used to keep the connection alive and measure latency. </summary> /// <summary> C→S - Used to keep the connection alive and measure latency. </summary>
Heartbeat = 3, Heartbeat = 3,
/// <summary> C←S - Used to reply to a client's heartbeat. </summary>
HeartbeatAck = 3,
/// <summary> C←S - Used to provide an encryption key to the client. </summary> /// <summary> C←S - Used to provide an encryption key to the client. </summary>
SessionDescription = 4, SessionDescription = 4,
/// <summary> C↔S - Used to inform that a certain user is speaking. </summary> /// <summary> C↔S - Used to inform that a certain user is speaking. </summary>
Speaking = 5
Speaking = 5,
/// <summary> C←S - Used to reply to a client's heartbeat. </summary>
HeartbeatAck = 6,
/// <summary> C→S - Used to resume a connection. </summary>
Resume = 7,
/// <summary> C←S - The continuous interval in milliseconds after which the client should send a heartbeat. </summary>
Hello = 8,
/// <summary> C←S - Used to acknowledge Resume. </summary>
Resumed = 9,
/// <summary> C←S - Used to acknowledge that a client has disconnected from the voice channel. </summary>
ClientDisconnect = 13,
} }
} }

Loading…
Cancel
Save