From 88c5dd38bfbaee915b0e76986787731334666d0b Mon Sep 17 00:00:00 2001 From: RogueException Date: Thu, 13 Oct 2016 11:50:40 -0300 Subject: [PATCH] Added CommandContext.IsPrivate --- src/Discord.Net.Commands/CommandContext.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Discord.Net.Commands/CommandContext.cs b/src/Discord.Net.Commands/CommandContext.cs index 555141801..914b41b30 100644 --- a/src/Discord.Net.Commands/CommandContext.cs +++ b/src/Discord.Net.Commands/CommandContext.cs @@ -7,6 +7,8 @@ public IUser User { get; } public IUserMessage Message { get; } + public bool IsPrivate => Channel is IPrivateChannel; + public CommandContext(IGuild guild, IMessageChannel channel, IUser user, IUserMessage msg) { Guild = guild;