Browse Source

Typo permissions -> colors in PackedColors

tags/docs-0.9
RogueException 9 years ago
parent
commit
1f06e81f64
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Discord.Net/Models/PackedColor.cs

+ 2
- 2
src/Discord.Net/Models/PackedColor.cs View File

@@ -12,7 +12,7 @@ namespace Discord
set set
{ {
if (_isLocked) if (_isLocked)
throw new InvalidOperationException("Unable to edit cached permissions directly, use Copy() to make an editable copy.");
throw new InvalidOperationException("Unable to edit cached colors directly, use Copy() to make an editable copy.");
_rawValue = value; _rawValue = value;
} }
} }
@@ -36,7 +36,7 @@ namespace Discord
protected void SetByte(int pos, byte value) protected void SetByte(int pos, byte value)
{ {
if (_isLocked) if (_isLocked)
throw new InvalidOperationException("Unable to edit cached permissions directly, use Copy() to make an editable copy.");
throw new InvalidOperationException("Unable to edit cached colors directly, use Copy() to make an editable copy.");


uint original = _rawValue; uint original = _rawValue;
int bit = 8 * (pos - 1); int bit = 8 * (pos - 1);


Loading…
Cancel
Save