From 618b4399d34a20ba930a508186f725fd67348493 Mon Sep 17 00:00:00 2001 From: RogueException Date: Tue, 8 Sep 2015 20:14:40 -0300 Subject: [PATCH] Removed error 500 checks for deleting messages --- src/Discord.Net/DiscordClient.API.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Discord.Net/DiscordClient.API.cs b/src/Discord.Net/DiscordClient.API.cs index 939671d7a..25ac7427a 100644 --- a/src/Discord.Net/DiscordClient.API.cs +++ b/src/Discord.Net/DiscordClient.API.cs @@ -333,7 +333,6 @@ namespace Discord _messages.Remove(msgId); } catch (HttpException ex) when (ex.StatusCode == HttpStatusCode.NotFound) { } - catch (HttpException ex) when (ex.StatusCode == HttpStatusCode.InternalServerError) { } //TODO: Remove me - temporary fix for deleting nonexisting messages } public async Task DeleteMessages(IEnumerable msgs) { @@ -347,7 +346,6 @@ namespace Discord await _api.DeleteMessage(msg.ChannelId, msg.Id); } catch (HttpException ex) when (ex.StatusCode == HttpStatusCode.NotFound) { } - catch (HttpException ex) when (ex.StatusCode == HttpStatusCode.InternalServerError) { } //TODO: Remove me - temporary fix for deleting nonexisting messages } } public async Task DeleteMessages(string channelId, IEnumerable msgIds) @@ -362,7 +360,6 @@ namespace Discord await _api.DeleteMessage(channelId, msgId); } catch (HttpException ex) when (ex.StatusCode == HttpStatusCode.NotFound) { } - catch (HttpException ex) when (ex.StatusCode == HttpStatusCode.InternalServerError) { } //TODO: Remove me - temporary fix for deleting nonexisting messages } }