Table of Contents

Class RoleColors

Namespace
NetCord
Assembly
NetCord.dll

Represents the colors of a Role.

public class RoleColors : IJsonModel<JsonRoleColors>
Inheritance
RoleColors
Implements
Inherited Members

Constructors

RoleColors(JsonRoleColors)

Represents the colors of a Role.

public RoleColors(JsonRoleColors jsonModel)

Parameters

jsonModel JsonRoleColors

Properties

PrimaryColor

The primary color for the Role.

public Color PrimaryColor { get; }

Property Value

Color

SecondaryColor

The secondary color for the Role. This will make the role a gradient between the other provided colors.

public Color? SecondaryColor { get; }

Property Value

Color?

Remarks

Requires the guild to have the ENHANCED_ROLE_COLORS guild feature.

TertiaryColor

The tertiary color for the Role. This will turn the gradient into a holographic style.

public Color? TertiaryColor { get; }

Property Value

Color?

Remarks

Requires the guild to have the ENHANCED_ROLE_COLORS guild feature.