Namespace changes to make them make sense

This commit is contained in:
Kwoth
2024-04-27 22:45:14 +00:00
parent e963ffeaab
commit 4bab94b329
69 changed files with 59 additions and 78 deletions

View File

@@ -0,0 +1,29 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Discord.Models.Gateway
{
public sealed class VoicePayload
{
[JsonProperty("op")]
public VoiceOpCode OpCode { get; set; }
[JsonProperty("d")]
public JToken Data { get; set; }
}
public enum VoiceOpCode
{
Identify = 0,
SelectProtocol = 1,
Ready = 2,
Heartbeat = 3,
SessionDescription = 4,
Speaking = 5,
HeartbeatAck = 6,
Resume = 7,
Hello = 8,
Resumed = 9,
ClientDisconnect = 13,
}
}