Search Results for

    Show / Hide Table of Contents

    Struct DiscordColor

    Represents a color used in Discord API.

    Namespace: DisCatSharp.Entities
    Assembly: DisCatSharp.dll
    Syntax
    public struct DiscordColor

    Constructors

    | Improve this Doc View Source

    DiscordColor(Byte, Byte, Byte)

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

    Declaration
    public DiscordColor(byte r, byte g, byte b)
    Parameters
    Type Name Description
    System.Byte r

    Value of the red component.

    System.Byte g

    Value of the green component.

    System.Byte b

    Value of the blue component.

    | Improve this Doc View Source

    DiscordColor(Int32)

    Creates a new color with specified value.

    Declaration
    public DiscordColor(int color)
    Parameters
    Type Name Description
    System.Int32 color

    Value of the color.

    | Improve this Doc View Source

    DiscordColor(Single, Single, Single)

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

    Declaration
    public DiscordColor(float r, float g, float b)
    Parameters
    Type Name Description
    System.Single r

    Value of the red component.

    System.Single g

    Value of the green component.

    System.Single b

    Value of the blue component.

    | Improve this Doc View Source

    DiscordColor(String)

    Creates a new color from specified string representation.

    Declaration
    public DiscordColor(string color)
    Parameters
    Type Name Description
    System.String color

    String representation of the color. Must be 6 hexadecimal characters, optionally with # prefix.

    Properties

    | Improve this Doc View Source

    Aquamarine

    Aquamarine, or #00FFBF.

    Declaration
    public static readonly DiscordColor Aquamarine { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Azure

    Azure, or #007FFF.

    Declaration
    public static readonly DiscordColor Azure { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    B

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

    Declaration
    public readonly byte B { get; }
    Property Value
    Type Description
    System.Byte
    | Improve this Doc View Source

    Black

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

    Declaration
    public static readonly DiscordColor Black { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Blue

    Blue, or #0000FF.

    Declaration
    public static readonly DiscordColor Blue { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Blurple

    Discord Blurple, or #5865F2.

    Declaration
    public static readonly DiscordColor Blurple { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Brown

    Brown, or #A52A2A.

    Declaration
    public static readonly DiscordColor Brown { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Chartreuse

    Chartreuse, or #7FFF00.

    Declaration
    public static readonly DiscordColor Chartreuse { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    CornflowerBlue

    Cornflower blue, or #6495ED.

    Declaration
    public static readonly DiscordColor CornflowerBlue { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Cyan

    Cyan, or #00FFFF.

    Declaration
    public static readonly DiscordColor Cyan { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    DarkBlue

    Dark blue, or #00007F.

    Declaration
    public static readonly DiscordColor DarkBlue { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    DarkGray

    Dark gray, or #A9A9A9.

    Declaration
    public static readonly DiscordColor DarkGray { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    DarkGreen

    Dark green, or #007F00.

    Declaration
    public static readonly DiscordColor DarkGreen { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    DarkRed

    Dark red, or #7F0000.

    Declaration
    public static readonly DiscordColor DarkRed { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Fuchsia

    Discord Fuchsia, or #EB459E.

    Declaration
    public static readonly DiscordColor Fuchsia { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    G

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

    Declaration
    public readonly byte G { get; }
    Property Value
    Type Description
    System.Byte
    | Improve this Doc View Source

    Gold

    Gold, or #FFD700.

    Declaration
    public static readonly DiscordColor Gold { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Goldenrod

    Goldenrod, or #DAA520.

    Declaration
    public static readonly DiscordColor Goldenrod { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Gray

    Gray, or #808080.

    Declaration
    public static readonly DiscordColor Gray { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Green

    Discord Green, or #57F287.

    Declaration
    public static readonly DiscordColor Green { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    HotPink

    Hot pink, or #FF69B4

    Declaration
    public static readonly DiscordColor HotPink { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    IndianRed

    Indian red, or #CD5C5C.

    Declaration
    public static readonly DiscordColor IndianRed { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    LightGray

    Light gray, or #808080.

    Declaration
    public static readonly DiscordColor LightGray { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Lilac

    Lilac, or #C8A2C8.

    Declaration
    public static readonly DiscordColor Lilac { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Magenta

    Magenta, or #FF00FF.

    Declaration
    public static readonly DiscordColor Magenta { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    MidnightBlue

    Midnight blue, or #191970.

    Declaration
    public static readonly DiscordColor MidnightBlue { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    None

    Represents no color, or integer 0;

    Declaration
    public static readonly DiscordColor None { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Orange

    Orange, or #FFA500.

    Declaration
    public static readonly DiscordColor Orange { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    PhthaloBlue

    Phthalo blue, or #000F89.

    Declaration
    public static readonly DiscordColor PhthaloBlue { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    PhthaloGreen

    Phthalo green, or #123524.

    Declaration
    public static readonly DiscordColor PhthaloGreen { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Purple

    Purple, or #800080.

    Declaration
    public static readonly DiscordColor Purple { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    R

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

    Declaration
    public readonly byte R { get; }
    Property Value
    Type Description
    System.Byte
    | Improve this Doc View Source

    Red

    Discord Red, or #ED4245.

    Declaration
    public static readonly DiscordColor Red { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Rose

    Rose, or #FF007F.

    Declaration
    public static readonly DiscordColor Rose { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    SapGreen

    Sap green, or #507D2A.

    Declaration
    public static readonly DiscordColor SapGreen { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Sienna

    Sienna, or #882D17.

    Declaration
    public static readonly DiscordColor Sienna { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    SpringGreen

    Spring green, or #00FF7F.

    Declaration
    public static readonly DiscordColor SpringGreen { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Teal

    Teal, or #008080.

    Declaration
    public static readonly DiscordColor Teal { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Turquoise

    Turquoise, or #30D5C8.

    Declaration
    public static readonly DiscordColor Turquoise { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Value

    Gets the integer representation of this color.

    Declaration
    public readonly int Value { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    VeryDarkGray

    Very dark gray, or #666666.

    Declaration
    public static readonly DiscordColor VeryDarkGray { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Violet

    Violet, or #EE82EE.

    Declaration
    public static readonly DiscordColor Violet { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Wheat

    Wheat, or #F5DEB3.

    Declaration
    public static readonly DiscordColor Wheat { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    White

    White, or #FFFFFF.

    Declaration
    public static readonly DiscordColor White { get; }
    Property Value
    Type Description
    DiscordColor
    | Improve this Doc View Source

    Yellow

    Discord Yellow, or #FEE75C.

    Declaration
    public static readonly DiscordColor Yellow { get; }
    Property Value
    Type Description
    DiscordColor

    Methods

    | Improve this Doc View Source

    ToString()

    Gets a string representation of this color.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    String representation of this color.

    Overrides
    System.ValueType.ToString()

    Operators

    | Improve this Doc View Source

    Implicit(Int32 to DiscordColor)

    Declaration
    public static implicit operator DiscordColor(int value)
    Parameters
    Type Name Description
    System.Int32 value
    Returns
    Type Description
    DiscordColor

    Extension Methods

    ReflectionUtilities.ToDictionary<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top © 2021-2022 Aiko IT Systems