mirror of https://github.com/ppy/osu
Add ToString() method to message for better debugging
This commit is contained in:
parent
6e812ebd56
commit
e8180ab153
|
@ -63,5 +63,7 @@ public int CompareTo(Message other)
|
||||||
|
|
||||||
// ReSharper disable once ImpureMethodCallOnReadonlyValueField
|
// ReSharper disable once ImpureMethodCallOnReadonlyValueField
|
||||||
public override int GetHashCode() => Id.GetHashCode();
|
public override int GetHashCode() => Id.GetHashCode();
|
||||||
|
|
||||||
|
public override string ToString() => $"[{ChannelId}] ({Id}) {Sender}: {Content}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue