Struct DiscordColor
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
Represents a color used in Discord API.
public readonly struct DiscordColor
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 #7289DA.
- Brown
Brown, or #A52A2A.
- Chartreuse
Chartreuse, or #7FFF00.
- CornflowerBlue
Cornflower blue, or #6495ED.
- Cyan
Cyan, or #00FFFF.
- DarkBlue
Dark blue, or #00007F.
- DarkButNotBlack
Discord Dark, But Not Black, or #2C2F33.
- DarkGray
Dark gray, or #A9A9A9.
- DarkGreen
Dark green, or #007F00.
- DarkRed
Dark red, or #7F0000.
- 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.
- Grayple
Discord Grayple, or #99AAB5.
- Green
Green, or #00FF00.
- 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;
- NotQuiteBlack
Discord Not QuiteBlack, or #23272A.
- 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
Red, or #FF0000.
- 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
Yellow, or #FFFF00.
Methods
- ToString()
Gets a string representation of this color.