From 84bf9e7514091488e46e18ff6531b20e9cd1917f Mon Sep 17 00:00:00 2001 From: RogueException Date: Wed, 23 Dec 2015 05:02:49 -0400 Subject: [PATCH] Added User.PrivateChannel --- src/Discord.Net/Models/User.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Discord.Net/Models/User.cs b/src/Discord.Net/Models/User.cs index 464078f3b..779c2005c 100644 --- a/src/Discord.Net/Models/User.cs +++ b/src/Discord.Net/Models/User.cs @@ -71,6 +71,8 @@ namespace Discord // /// Gets this user's voice token. // public string Token { get; private set; } + /// Gets the current private channel for this user if one exists. + public Channel PrivateChannel => Client.GetPrivateChannel(Id); /// Returns the string used to mention this user. public string Mention => $"<@{Id}>"; /// Returns true if this user has marked themselves as muted.