* Match debugger display value https://github.com/discord-net/Discord.Net/issues/1327 * Use string.format to convert raw value to hex * Remove nested string.format
This commit is contained in:
@@ -204,8 +204,8 @@ namespace Discord
|
|||||||
/// A hexadecimal string of the color.
|
/// A hexadecimal string of the color.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
public override string ToString() =>
|
public override string ToString() =>
|
||||||
$"#{Convert.ToString(RawValue, 16)}";
|
string.Format("#{0:X6}", RawValue);
|
||||||
private string DebuggerDisplay =>
|
private string DebuggerDisplay =>
|
||||||
$"#{Convert.ToString(RawValue, 16)} ({RawValue})";
|
string.Format("#{0:X6} ({0})", RawValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user