Browse Source

User.LastOnlineAt should default to null if that person hasn't logged on yet

tags/docs-0.9
RogueException 9 years ago
parent
commit
1d63ae756c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Discord.Net/Models/User.cs

+ 2
- 2
src/Discord.Net/Models/User.cs View File

@@ -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>
public DateTime? LastActivityAt { get; private set; }
/// <summary> Returns the time this user was last seen online in this server. </summary>
public DateTime LastOnlineAt => Status != UserStatus.Offline ? DateTime.UtcNow : _lastOnline;
private DateTime _lastOnline;
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]


Loading…
Cancel
Save