From b3dbfd8f849f2e3451f0e66ccdfb0b573ceffd18 Mon Sep 17 00:00:00 2001 From: RogueException Date: Fri, 16 Oct 2015 23:12:51 -0300 Subject: [PATCH] Fixed DeleteMessages --- src/Discord.Net/DiscordClient.API.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Discord.Net/DiscordClient.API.cs b/src/Discord.Net/DiscordClient.API.cs index 33ca1f2df..a7985bac4 100644 --- a/src/Discord.Net/DiscordClient.API.cs +++ b/src/Discord.Net/DiscordClient.API.cs @@ -435,7 +435,7 @@ namespace Discord { try { - await _api.DeleteMessage(msg.ChannelId, msg.Id).ConfigureAwait(false); + await _api.DeleteMessage(msg.Id, msg.ChannelId).ConfigureAwait(false); } catch (HttpException ex) when (ex.StatusCode == HttpStatusCode.NotFound) { } } @@ -449,7 +449,7 @@ namespace Discord { try { - await _api.DeleteMessage(channelId, msgId).ConfigureAwait(false); + await _api.DeleteMessage(msgId, channelId).ConfigureAwait(false); } catch (HttpException ex) when (ex.StatusCode == HttpStatusCode.NotFound) { } }