From 96a377a258e2d1d4463c5c9217fd0899467f218e Mon Sep 17 00:00:00 2001 From: RogueException Date: Sat, 18 Mar 2017 09:32:04 -0300 Subject: [PATCH] If discord error code is 0, fall back to http code --- src/Discord.Net.Core/Net/HttpException.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net.Core/Net/HttpException.cs b/src/Discord.Net.Core/Net/HttpException.cs index 4141979a0..1c872245c 100644 --- a/src/Discord.Net.Core/Net/HttpException.cs +++ b/src/Discord.Net.Core/Net/HttpException.cs @@ -20,7 +20,7 @@ namespace Discord.Net private static string CreateMessage(HttpStatusCode httpCode, int? discordCode = null, string reason = null) { string msg; - if (discordCode != null) + if (discordCode != null && discordCode != 0) { if (reason != null) msg = $"The server responded with error {(int)discordCode}: {reason}";