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