Class RoleColorsProperties
- Namespace
- NetCord.Rest
- Assembly
- NetCord.dll
public class RoleColorsProperties
- Inheritance
-
RoleColorsProperties
- Inherited Members
-
Constructors
RoleColorsProperties(Color)
public RoleColorsProperties(Color primaryColor)
Parameters
primaryColor Color
Properties
PrimaryColor
[JsonPropertyName("primary_color")]
public Color PrimaryColor { get; set; }
Property Value
- Color
SecondaryColor
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("secondary_color")]
public Color? SecondaryColor { get; set; }
Property Value
- Color?
TertiaryColor
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("tertiary_color")]
public Color? TertiaryColor { get; set; }
Property Value
- Color?
Methods
WithPrimaryColor(Color)
public RoleColorsProperties WithPrimaryColor(Color primaryColor)
Parameters
primaryColor Color
Returns
- RoleColorsProperties
WithSecondaryColor(Color?)
public RoleColorsProperties WithSecondaryColor(Color? secondaryColor)
Parameters
secondaryColor Color?
Returns
- RoleColorsProperties
WithTertiaryColor(Color?)
public RoleColorsProperties WithTertiaryColor(Color? tertiaryColor)
Parameters
tertiaryColor Color?
Returns
- RoleColorsProperties