Browse Source

Fixed RGB summaries in PackedColor

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

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

@@ -19,11 +19,11 @@ namespace Discord
public PackedColor(uint rawValue) { _rawValue = rawValue; }

/// <summary> If True, a user may join channels. </summary>
/// <summary> Gets or sets the red component for this color. </summary>
public byte Red { get { return GetByte(3); } set { SetByte(3, value); } }
/// <summary> If True, a user may send messages. </summary>
/// <summary> Gets or sets the green component for this color. </summary>
public byte Green { get { return GetByte(2); } set { SetByte(2, value); } }
/// <summary> If True, a user may send text-to-speech messages. </summary>
/// <summary> Gets or sets the blue component for this color. </summary>
public byte Blue { get { return GetByte(1); } set { SetByte(1, value); } }

internal void Lock() => _isLocked = true;


Loading…
Cancel
Save