Table of Contents

Struct DiscordColor

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Represents a color used in Discord API.

public readonly struct DiscordColor
Inherited Members

Constructors

DiscordColor(byte, byte, byte)

Creates a new color with specified values for red, green, and blue components.

DiscordColor(int)

Creates a new color with specified value.

DiscordColor(float, float, float)

Creates a new color with specified values for red, green, and blue components.

DiscordColor(string)

Creates a new color from specified string representation.

Properties

Aquamarine

Aquamarine, or #00FFBF.

Azure

Azure, or #007FFF.

B

Gets the blue component of this color as an 8-bit integer.

Black

A near-black color. Due to API limitations, the color is #010101, rather than #000000, as the latter is treated as no color.

Blue

Blue, or #0000FF.

Blurple

Discord Blurple, or #5865F2.

Brown

Brown, or #A52A2A.

Chartreuse

Chartreuse, or #7FFF00.

CornflowerBlue

Cornflower blue, or #6495ED.

Cyan

Cyan, or #00FFFF.

DarkBlue

Dark blue, or #00007F.

DarkGray

Dark gray, or #A9A9A9.

DarkGreen

Dark green, or #007F00.

DarkRed

Dark red, or #7F0000.

Fuchsia

Discord Fuchsia, or #EB459E.

G

Gets the green component of this color as an 8-bit integer.

Gold

Gold, or #FFD700.

Goldenrod

Goldenrod, or #DAA520.

Gray

Gray, or #808080.

Green

Discord Green, or #57F287.

HotPink

Hot pink, or #FF69B4

IndianRed

Indian red, or #CD5C5C.

LightGray

Light gray, or #808080.

Lilac

Lilac, or #C8A2C8.

Magenta

Magenta, or #FF00FF.

MidnightBlue

Midnight blue, or #191970.

None

Represents no color, or integer 0;

Orange

Orange, or #FFA500.

PhthaloBlue

Phthalo blue, or #000F89.

PhthaloGreen

Phthalo green, or #123524.

Purple

Purple, or #800080.

R

Gets the red component of this color as an 8-bit integer.

Red

Discord Red, or #ED4245.

Rose

Rose, or #FF007F.

SapGreen

Sap green, or #507D2A.

Sienna

Sienna, or #882D17.

SpringGreen

Spring green, or #00FF7F.

Teal

Teal, or #008080.

Turquoise

Turquoise, or #30D5C8.

Value

Gets the integer representation of this color.

VeryDarkGray

Very dark gray, or #666666.

Violet

Violet, or #EE82EE.

Wheat

Wheat, or #F5DEB3.

White

White, or #FFFFFF.

Yellow

Discord Yellow, or #FEE75C.

Methods

ToString()

Gets a string representation of this color.

Operators

implicit operator DiscordColor(int)