Skip to main content

Struct Color

Represents a color used in Discord.

Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public struct Color

Properties​

RawValue​

Gets the encoded value for this color.

View Source​
Declaration
public readonly uint RawValue { get; }

R​

Gets the red component for this color.

View Source​
Declaration
public readonly byte R { get; }

G​

Gets the green component for this color.

View Source​
Declaration
public readonly byte G { get; }

B​

Gets the blue component for this color.

View Source​
Declaration
public readonly byte B { get; }

Fields​

MaxDecimalValue​

Gets the max decimal value of color.

View Source​
Declaration
public const uint MaxDecimalValue = 16777215U

Default​

Gets the default user color value.

View Source​
Declaration
public static readonly Color Default

Teal​

Gets the teal color value.

View Source​
Declaration
public static readonly Color Teal

DarkTeal​

Gets the dark teal color value.

View Source​
Declaration
public static readonly Color DarkTeal

Green​

Gets the green color value.

View Source​
Declaration
public static readonly Color Green

DarkGreen​

Gets the dark green color value.

View Source​
Declaration
public static readonly Color DarkGreen

Blue​

Gets the blue color value.

View Source​
Declaration
public static readonly Color Blue

DarkBlue​

Gets the dark blue color value.

View Source​
Declaration
public static readonly Color DarkBlue

Purple​

Gets the purple color value.

View Source​
Declaration
public static readonly Color Purple

DarkPurple​

Gets the dark purple color value.

View Source​
Declaration
public static readonly Color DarkPurple

Magenta​

Gets the magenta color value.

View Source​
Declaration
public static readonly Color Magenta

DarkMagenta​

Gets the dark magenta color value.

View Source​
Declaration
public static readonly Color DarkMagenta

Gold​

Gets the gold color value.

View Source​
Declaration
public static readonly Color Gold

LightOrange​

Gets the light orange color value.

View Source​
Declaration
public static readonly Color LightOrange

Orange​

Gets the orange color value.

View Source​
Declaration
public static readonly Color Orange

DarkOrange​

Gets the dark orange color value.

View Source​
Declaration
public static readonly Color DarkOrange

Red​

Gets the red color value.

View Source​
Declaration
public static readonly Color Red

DarkRed​

Gets the dark red color value.

View Source​
Declaration
public static readonly Color DarkRed

LightGrey​

Gets the light grey color value.

View Source​
Declaration
public static readonly Color LightGrey

LighterGrey​

Gets the lighter grey color value.

View Source​
Declaration
public static readonly Color LighterGrey

DarkGrey​

Gets the dark grey color value.

View Source​
Declaration
public static readonly Color DarkGrey

DarkerGrey​

Gets the darker grey color value.

View Source​
Declaration
public static readonly Color DarkerGrey

Methods​

Equals(Object)​

View Source​
Declaration
public override bool Equals(object obj)
Returns​

System.Boolean

Parameters​
TypeName
System.Objectobj

GetHashCode()​

View Source​
Declaration
public override int GetHashCode()
Returns​

System.Int32

ToString()​

Gets the hexadecimal representation of the color (e.g. #000ccc).

View Source​
Declaration
public override string ToString()
Returns​

System.String: A hexadecimal string of the color.