Improve `ToString` output of `Message`

This commit is contained in:
Dean Herbert 2022-11-30 15:36:22 +09:00
parent b0039c9b1b
commit c84f011bb7
1 changed files with 1 additions and 1 deletions

View File

@ -85,6 +85,6 @@ public virtual bool Equals(Message other)
// ReSharper disable once ImpureMethodCallOnReadonlyValueField
public override int GetHashCode() => Id.GetHashCode();
public override string ToString() => $"[{ChannelId}] ({Id}) {Sender}: {Content}";
public override string ToString() => $"({(Id?.ToString() ?? "null")}) {Timestamp} {Sender}: {Content}";
}
}