diff --git a/src/Discord.Net/DiscordClient.cs b/src/Discord.Net/DiscordClient.cs
index 561b5c00f..30300df4b 100644
--- a/src/Discord.Net/DiscordClient.cs
+++ b/src/Discord.Net/DiscordClient.cs
@@ -1262,10 +1262,17 @@ namespace Discord
catch (HttpException ex) when (ex.StatusCode == HttpStatusCode.NotFound) { }
}
- //Chat
- /// Sends a message to the provided channel.
- public Task SendMessage(Channel channel, string text)
- => SendMessage(channel.Id, text, new string[0]);
+ //Chat
+ /// Sends a message to the provided channel.
+ public Task SendMessage(Channel channel, string text)
+ {
+ if (channel == null)
+ {
+ throw new ArgumentNullException("channel");
+ }
+
+ return SendMessage(channel.Id, text, new string[0]);
+ }
/// Sends a message to the provided channel.
public Task SendMessage(string channelId, string text)
=> SendMessage(channelId, text, new string[0]);