Table of Contents

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

jsonModel JsonApplicationCommandInteractionDataOption

Properties

Focused

If the user is currently typing in this option. Used for autocomplete interactions.

public bool Focused { get; }

Property Value

bool

Name

The parameter's name.

public string Name { get; }

Property Value

string

Options

A list of ApplicationCommandInteractionDataOption objects, if the option's Type is SubCommand or SubCommandGroup, otherwise empty.

public IReadOnlyList<ApplicationCommandInteractionDataOption>? Options { get; }

Property Value

IReadOnlyList<ApplicationCommandInteractionDataOption>

Type

The parameter's type.

public ApplicationCommandOptionType Type { get; }

Property Value

ApplicationCommandOptionType

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; }

Property Value

string