Add ToString() method to message for better debugging

This commit is contained in:
Craftplacer 2019-12-16 00:45:55 +01:00
parent 6e812ebd56
commit e8180ab153
1 changed files with 2 additions and 0 deletions

View File

@ -63,5 +63,7 @@ public int CompareTo(Message other)
// ReSharper disable once ImpureMethodCallOnReadonlyValueField
public override int GetHashCode() => Id.GetHashCode();
public override string ToString() => $"[{ChannelId}] ({Id}) {Sender}: {Content}";
}
}