Table of Contents

Interface IApplicationCommandOption

Namespace
Discord
Assembly
Discord.Net.Core.dll

Options for the IApplicationCommand.

public interface IApplicationCommandOption

Properties

ChannelTypes

Gets the allowed channel types for this option.

IReadOnlyCollection<ChannelType> ChannelTypes { get; }

Property Value

IReadOnlyCollection<ChannelType>

Choices

Gets the choices for string and int types for the user to pick from.

IReadOnlyCollection<IApplicationCommandOptionChoice> Choices { get; }

Property Value

IReadOnlyCollection<IApplicationCommandOptionChoice>

Description

Gets the description of this command option.

string Description { get; }

Property Value

string

DescriptionLocalizations

Gets the localization dictionary for the description field of this command option.

IReadOnlyDictionary<string, string> DescriptionLocalizations { get; }

Property Value

IReadOnlyDictionary<string, string>

DescriptionLocalized

Gets the localized description of this command option.

string DescriptionLocalized { get; }

Property Value

string

Remarks

Only returned when the withLocalizations query parameter is set to true when requesting the command.

IsAutocomplete

Gets whether or not the option has autocomplete enabled.

bool? IsAutocomplete { get; }

Property Value

bool?

IsDefault

Gets whether or not this is the first required option for the user to complete.

bool? IsDefault { get; }

Property Value

bool?

IsRequired

Gets whether or not the parameter is required or optional.

bool? IsRequired { get; }

Property Value

bool?

MaxLength

Gets the maximum allowed length for a string input.

int? MaxLength { get; }

Property Value

int?

MaxValue

Gets the largest number value the user can input.

double? MaxValue { get; }

Property Value

double?

MinLength

Gets the minimum allowed length for a string input.

int? MinLength { get; }

Property Value

int?

MinValue

Gets the smallest number value the user can input.

double? MinValue { get; }

Property Value

double?

Name

Gets the name of this command option.

string Name { get; }

Property Value

string

NameLocalizations

Gets the localization dictionary for the name field of this command option.

IReadOnlyDictionary<string, string> NameLocalizations { get; }

Property Value

IReadOnlyDictionary<string, string>

NameLocalized

Gets the localized name of this command option.

string NameLocalized { get; }

Property Value

string

Remarks

Only returned when the withLocalizations query parameter is set to false when requesting the command.

Options

Gets the sub-options for this command option.

IReadOnlyCollection<IApplicationCommandOption> Options { get; }

Property Value

IReadOnlyCollection<IApplicationCommandOption>

Type

Gets the type of this IApplicationCommandOption.

ApplicationCommandOptionType Type { get; }

Property Value

ApplicationCommandOptionType