Table of Contents

Class RoleProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class RoleProperties
Inheritance
RoleProperties
Inherited Members

Constructors

RoleProperties()

public RoleProperties()

Properties

Color

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("color")]
public Color? Color { get; set; }

Property Value

Color?

Hoist

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("hoist")]
public bool? Hoist { get; set; }

Property Value

bool?

Icon

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("icon")]
public ImageProperties? Icon { get; set; }

Property Value

ImageProperties?

Mentionable

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("mentionable")]
public bool? Mentionable { get; set; }

Property Value

bool?

Name

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("name")]
public string? Name { get; set; }

Property Value

string

Permissions

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("permissions")]
public Permissions? Permissions { get; set; }

Property Value

Permissions?

UnicodeIcon

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("unicode_emoji")]
public string? UnicodeIcon { get; set; }

Property Value

string

Methods

WithColor(Color?)

public RoleProperties WithColor(Color? color)

Parameters

color Color?

Returns

RoleProperties

WithHoist(bool?)

public RoleProperties WithHoist(bool? hoist = true)

Parameters

hoist bool?

Returns

RoleProperties

WithIcon(ImageProperties?)

public RoleProperties WithIcon(ImageProperties? icon)

Parameters

icon ImageProperties?

Returns

RoleProperties

WithMentionable(bool?)

public RoleProperties WithMentionable(bool? mentionable = true)

Parameters

mentionable bool?

Returns

RoleProperties

WithName(string?)

public RoleProperties WithName(string? name)

Parameters

name string

Returns

RoleProperties

WithPermissions(Permissions?)

public RoleProperties WithPermissions(Permissions? permissions)

Parameters

permissions Permissions?

Returns

RoleProperties

WithUnicodeIcon(string?)

public RoleProperties WithUnicodeIcon(string? unicodeIcon)

Parameters

unicodeIcon string

Returns

RoleProperties