diff --git a/src/Discord.Net.Core/Entities/Roles/Color.cs b/src/Discord.Net.Core/Entities/Roles/Color.cs index f1ebe6d60..4531e01c3 100644 --- a/src/Discord.Net.Core/Entities/Roles/Color.cs +++ b/src/Discord.Net.Core/Entities/Roles/Color.cs @@ -204,8 +204,8 @@ namespace Discord /// A hexadecimal string of the color. /// public override string ToString() => - $"#{Convert.ToString(RawValue, 16).PadLeft(6, '0')}"; + $"#{string.Format("{0:x6}", RawValue)}"; private string DebuggerDisplay => - $"#{Convert.ToString(RawValue, 16).PadLeft(6, '0')} ({RawValue})"; + $"#{String.Format("{0:x6}", RawValue)} ({RawValue})"; } }