Browse Source

Remove nested string.format

pull/1328/head
Passive GitHub 6 years ago
parent
commit
4a4cc2a710
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Discord.Net.Core/Entities/Roles/Color.cs

+ 2
- 2
src/Discord.Net.Core/Entities/Roles/Color.cs View File

@@ -204,8 +204,8 @@ namespace Discord
/// A hexadecimal string of the color.
/// </returns>
public override string ToString() =>
$"#{string.Format("{0:x6}", RawValue)}";
string.Format("#{0:X6}", RawValue);
private string DebuggerDisplay =>
$"#{String.Format("{0:x6}", RawValue)} ({RawValue})";
string.Format("#{0:X6} ({0})", RawValue);
}
}

Loading…
Cancel
Save