lint: Discord Namespace Clean-up (#1185)

* Remove RpcException

* Move RestConnection to Discord.Net.Rest

* Remove RpcVirtualMessageChannel

* Move REST objects to Discord.Net.Rest

* Fix Discord.Rest namespace
This commit is contained in:
Still Hsu
2018-11-06 07:32:30 +08:00
committed by Christopher F
parent c1d5152212
commit 7dd2268982
5 changed files with 3 additions and 130 deletions

View File

@@ -1,17 +0,0 @@
using System;
namespace Discord
{
public class RpcException : Exception
{
public int ErrorCode { get; }
public string Reason { get; }
public RpcException(int errorCode, string reason = null)
: base($"The server sent error {errorCode}{(reason != null ? $": \"{reason}\"" : "")}")
{
ErrorCode = errorCode;
Reason = reason;
}
}
}