Table of Contents

Class RoleOptions

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

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 RoleOptions WithColor(Color? color)

Parameters

color Color?

Returns

RoleOptions

WithHoist(bool?)

public RoleOptions WithHoist(bool? hoist = true)

Parameters

hoist bool?

Returns

RoleOptions

WithIcon(ImageProperties?)

public RoleOptions WithIcon(ImageProperties? icon)

Parameters

icon ImageProperties?

Returns

RoleOptions

WithMentionable(bool?)

public RoleOptions WithMentionable(bool? mentionable = true)

Parameters

mentionable bool?

Returns

RoleOptions

WithName(string?)

public RoleOptions WithName(string? name)

Parameters

name string

Returns

RoleOptions

WithPermissions(Permissions?)

public RoleOptions WithPermissions(Permissions? permissions)

Parameters

permissions Permissions?

Returns

RoleOptions

WithUnicodeIcon(string?)

public RoleOptions WithUnicodeIcon(string? unicodeIcon)

Parameters

unicodeIcon string

Returns

RoleOptions