Exposed User.PrivateChannel

This commit is contained in:
RogueException
2015-10-25 05:04:37 -03:00
parent 2abc38ef37
commit 47269aa420

View File

@@ -48,6 +48,10 @@ namespace Discord
public DateTime LastOnlineAt => Status != UserStatus.Offline ? DateTime.UtcNow : _lastOnline;
private DateTime _lastOnline;
/// <summary> Returns the private messaging channel with this user, if one exists. </summary>
[JsonIgnore]
public Channel PrivateChannel => GlobalUser.PrivateChannel;
[JsonIgnore]
internal GlobalUser GlobalUser => _globalUser.Value;
private readonly Reference<GlobalUser> _globalUser;