Class ApplicationCommandInteractionDataOption
- Namespace
- NetCord
- Assembly
- NetCord.dll
Contains information on an ApplicationCommandInteraction parameter.
public class ApplicationCommandInteractionDataOption : IJsonModel<JsonApplicationCommandInteractionDataOption>
- Inheritance
-
ApplicationCommandInteractionDataOption
- Implements
- Inherited Members
Constructors
ApplicationCommandInteractionDataOption(JsonApplicationCommandInteractionDataOption)
Contains information on an ApplicationCommandInteraction parameter.
public ApplicationCommandInteractionDataOption(JsonApplicationCommandInteractionDataOption jsonModel)
Parameters
Properties
Focused
If the user is currently typing in this option. Used for autocomplete interactions.
public bool Focused { get; }
Property Value
Name
The parameter's name.
public string Name { get; }
Property Value
Options
A list of ApplicationCommandInteractionDataOption objects, if the option's Type is SubCommand or SubCommandGroup, otherwise empty.
public IReadOnlyList<ApplicationCommandInteractionDataOption>? Options { get; }
Property Value
Type
The parameter's type.
public ApplicationCommandOptionType Type { get; }
Property Value
Value
The parameter's value, null if omitted. When autocomplete is triggered for this parameter, the value is guaranteed to be non-null.
public string? Value { get; }