User.LastOnlineAt should default to null if that person hasn't logged on yet
This commit is contained in:
@@ -58,8 +58,8 @@ namespace Discord
|
|||||||
/// <summary> Returns the time this user last sent/edited a message, started typing or sent voice data in this server. </summary>
|
/// <summary> Returns the time this user last sent/edited a message, started typing or sent voice data in this server. </summary>
|
||||||
public DateTime? LastActivityAt { get; private set; }
|
public DateTime? LastActivityAt { get; private set; }
|
||||||
/// <summary> Returns the time this user was last seen online in this server. </summary>
|
/// <summary> Returns the time this user was last seen online in this server. </summary>
|
||||||
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>
|
/// <summary> Returns the private messaging channel with this user, if one exists. </summary>
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|||||||
Reference in New Issue
Block a user