Table of Contents

Class StringMenuSelectOptionProperties

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

Constructors

StringMenuSelectOptionProperties(string, string)

public StringMenuSelectOptionProperties(string label, string value)

Parameters

label string
value string

Properties

Default

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("default")]
public bool Default { get; set; }

Property Value

bool

Description

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

Property Value

string

Emoji

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("emoji")]
public EmojiProperties? Emoji { get; set; }

Property Value

EmojiProperties

Label

[JsonPropertyName("label")]
public string Label { get; set; }

Property Value

string

Value

[JsonPropertyName("value")]
public string Value { get; set; }

Property Value

string

Methods

WithDefault(bool)

public StringMenuSelectOptionProperties WithDefault(bool @default = true)

Parameters

default bool

Returns

StringMenuSelectOptionProperties

WithDescription(string?)

public StringMenuSelectOptionProperties WithDescription(string? description)

Parameters

description string

Returns

StringMenuSelectOptionProperties

WithEmoji(EmojiProperties?)

public StringMenuSelectOptionProperties WithEmoji(EmojiProperties? emoji)

Parameters

emoji EmojiProperties

Returns

StringMenuSelectOptionProperties

WithLabel(string)

public StringMenuSelectOptionProperties WithLabel(string label)

Parameters

label string

Returns

StringMenuSelectOptionProperties

WithValue(string)

public StringMenuSelectOptionProperties WithValue(string value)

Parameters

value string

Returns

StringMenuSelectOptionProperties