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) { } }