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
jsonModelJsonRoleColors
Properties
PrimaryColor
The primary color for the Role.
public Color PrimaryColor { get; }
Property Value
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
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
Remarks
Requires the guild to have the ENHANCED_ROLE_COLORS guild feature.