diff --git a/global.json b/global.json
index 4a056d884..e59a3a1b5 100644
--- a/global.json
+++ b/global.json
@@ -3,6 +3,6 @@
"sdk": {
"version": "1.0.0-beta6",
"architecture": "x64",
- "runtime": "coreclr"
+ "runtime": "clr"
}
}
\ No newline at end of file
diff --git a/src/Discord.Net.Net45/Discord.Net.csproj b/src/Discord.Net.Net45/Discord.Net.csproj
index ecb4ff3f4..dbd864736 100644
--- a/src/Discord.Net.Net45/Discord.Net.csproj
+++ b/src/Discord.Net.Net45/Discord.Net.csproj
@@ -58,11 +58,17 @@
API\Models\Common.cs
-
- API\Models\WebSocketCommands.cs
+
+ API\Models\TextWebSocketCommands.cs
-
- API\Models\WebSocketEvents.cs
+
+ API\Models\TextWebSocketEvents.cs
+
+
+ API\Models\VoiceWebSocketCommands.cs
+
+
+ API\Models\VoiceWebSocketEvents.cs
Channel.cs
@@ -79,6 +85,15 @@
DiscordClientConfig.cs
+
+ DiscordTextWebSocket.cs
+
+
+ DiscordTextWebSocket.Events.cs
+
+
+ DiscordVoiceWebSocket.cs
+
DiscordWebSocket.cs
@@ -91,6 +106,9 @@
Helpers\Http.cs
+
+ HttpException.cs
+
Invite.cs
@@ -115,7 +133,6 @@
User.cs
-
diff --git a/src/Discord.Net.Net45/HttpException.cs b/src/Discord.Net.Net45/HttpException.cs
deleted file mode 100644
index 3f30fff95..000000000
--- a/src/Discord.Net.Net45/HttpException.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System;
-using System.Net;
-
-namespace Discord
-{
- public class HttpException : Exception
- {
- public HttpStatusCode StatusCode { get; }
-
- public HttpException(HttpStatusCode statusCode)
- : base($"The server responded with error {statusCode}")
- {
- StatusCode = statusCode;
- }
- }
-}
diff --git a/src/Discord.Net/API/Models/WebSocketCommands.cs b/src/Discord.Net/API/Models/TextWebSocketCommands.cs
similarity index 96%
rename from src/Discord.Net/API/Models/WebSocketCommands.cs
rename to src/Discord.Net/API/Models/TextWebSocketCommands.cs
index 5fc64aa52..645646566 100644
--- a/src/Discord.Net/API/Models/WebSocketCommands.cs
+++ b/src/Discord.Net/API/Models/TextWebSocketCommands.cs
@@ -8,7 +8,7 @@ using System.Collections.Generic;
namespace Discord.API.Models
{
- internal static class WebSocketCommands
+ internal static class TextWebSocketCommands
{
public sealed class KeepAlive : WebSocketMessage
{
diff --git a/src/Discord.Net/API/Models/WebSocketEvents.cs b/src/Discord.Net/API/Models/TextWebSocketEvents.cs
similarity index 98%
rename from src/Discord.Net/API/Models/WebSocketEvents.cs
rename to src/Discord.Net/API/Models/TextWebSocketEvents.cs
index 5fa12b017..52f3923ea 100644
--- a/src/Discord.Net/API/Models/WebSocketEvents.cs
+++ b/src/Discord.Net/API/Models/TextWebSocketEvents.cs
@@ -3,11 +3,10 @@
#pragma warning disable CS0169
using Newtonsoft.Json;
-using System;
namespace Discord.API.Models
{
- internal static class WebSocketEvents
+ internal static class TextWebSocketEvents
{
public sealed class Ready
{
diff --git a/src/Discord.Net/API/Models/VoiceWebSocketCommands.cs b/src/Discord.Net/API/Models/VoiceWebSocketCommands.cs
new file mode 100644
index 000000000..d508d1c6c
--- /dev/null
+++ b/src/Discord.Net/API/Models/VoiceWebSocketCommands.cs
@@ -0,0 +1,53 @@
+//Ignore unused/unassigned variable warnings
+#pragma warning disable CS0649
+#pragma warning disable CS0169
+
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+
+namespace Discord.API.Models
+{
+ internal static class VoiceWebSocketCommands
+ {
+ public sealed class KeepAlive : WebSocketMessage