This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
youys
/
Discord.Net
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
34
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Remove RpcException
pull/1185/head
Still Hsu
6 years ago
parent
8e6e0e9ad2
commit
9b2490fea5
No known key found for this signature in database
GPG Key ID:
8601A145FDA95209
1 changed files
with
0 additions
and
17 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-17
src/Discord.Net.Core/Net/RpcException.cs
+ 0
- 17
src/Discord.Net.Core/Net/RpcException.cs
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;
}
}
}
Write
Preview
Loading…
Cancel
Save