- Namespace
- NetCord.Rest
- Assembly
- NetCord.dll
public class StringMenuSelectOptionProperties
- Inheritance
-
StringMenuSelectOptionProperties
- Inherited Members
-
Constructors
public StringMenuSelectOptionProperties(string label, string value)
Parameters
label
string
value
string
Properties
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("default")]
public bool Default { get; set; }
Property Value
- bool
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("description")]
public string? Description { get; set; }
Property Value
- string
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("emoji")]
public EmojiProperties? Emoji { get; set; }
Property Value
- EmojiProperties
[JsonPropertyName("label")]
public string Label { get; set; }
Property Value
- string
[JsonPropertyName("value")]
public string Value { get; set; }
Property Value
- string
Methods
public StringMenuSelectOptionProperties WithDefault(bool @default = true)
Parameters
default
bool
Returns
- StringMenuSelectOptionProperties
public StringMenuSelectOptionProperties WithDescription(string? description)
Parameters
description
string
Returns
- StringMenuSelectOptionProperties
public StringMenuSelectOptionProperties WithEmoji(EmojiProperties? emoji)
Parameters
emoji
EmojiProperties
Returns
- StringMenuSelectOptionProperties
public StringMenuSelectOptionProperties WithLabel(string label)
Parameters
label
string
Returns
- StringMenuSelectOptionProperties
public StringMenuSelectOptionProperties WithValue(string value)
Parameters
value
string
Returns
- StringMenuSelectOptionProperties