From 270b673ec05dd15592d3a85aaedad1ebc89dcfad Mon Sep 17 00:00:00 2001
From: Hsu Still <341464@gmail.com>
Date: Sun, 1 Oct 2017 01:16:42 +0800
Subject: [PATCH] Update voice OP codes
---
src/Discord.Net.WebSocket/API/Voice/VoiceOpCode.cs | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/src/Discord.Net.WebSocket/API/Voice/VoiceOpCode.cs b/src/Discord.Net.WebSocket/API/Voice/VoiceOpCode.cs
index ae11a4c8f..ba5f2f75c 100644
--- a/src/Discord.Net.WebSocket/API/Voice/VoiceOpCode.cs
+++ b/src/Discord.Net.WebSocket/API/Voice/VoiceOpCode.cs
@@ -11,11 +11,19 @@ namespace Discord.API.Voice
Ready = 2,
/// C→S - Used to keep the connection alive and measure latency.
Heartbeat = 3,
- /// C←S - Used to reply to a client's heartbeat.
- HeartbeatAck = 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
+ 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 - The continuous interval in milliseconds after which the client should send a heartbeat.
+ Hello = 8,
+ /// C←S - Used to acknowledge Resume.
+ Resumed = 9,
+ /// C←S - Used to acknowledge that a client has disconnected from the voice channel.
+ ClientDisconnect = 13,
}
}