Class DiscordApplicationCommandOptionChoice
Represents a command parameter choice for a DiscordApplicationCommandOption.
Inheritance
System.Object
DiscordApplicationCommandOptionChoice
Namespace: DisCatSharp.Entities
Assembly: DisCatSharp.dll
Syntax
public sealed class DiscordApplicationCommandOptionChoice
Constructors
| Improve this Doc View SourceDiscordApplicationCommandOptionChoice(String, Object, DiscordApplicationCommandLocalization)
Creates a new instance of a DiscordApplicationCommandOptionChoice.
Declaration
public DiscordApplicationCommandOptionChoice(string name, object value, DiscordApplicationCommandLocalization nameLocalizations = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the parameter choice. |
System.Object | value | The value of the parameter choice. |
DiscordApplicationCommandLocalization | nameLocalizations | The localizations of the parameter choice name. |
Properties
| Improve this Doc View SourceName
Gets the name of this choice parameter.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
NameLocalizations
Gets the name localizations.
Declaration
public DiscordApplicationCommandLocalization NameLocalizations { get; }
Property Value
Type | Description |
---|---|
DiscordApplicationCommandLocalization |
Value
Gets the value of this choice parameter. This will either be a type of System.Int32, System.Int64, System.Double or System.String.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
System.Object |