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

View File

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