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
Choices
Gets the choices for string and int types for the user to pick from.
IReadOnlyCollection<IApplicationCommandOptionChoice> Choices { get; }
Property Value
Description
Gets the description of this command option.
string Description { get; }
Property Value
DescriptionLocalizations
Gets the localization dictionary for the description field of this command option.
IReadOnlyDictionary<string, string> DescriptionLocalizations { get; }
Property Value
DescriptionLocalized
Gets the localized description of this command option.
string DescriptionLocalized { get; }
Property Value
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
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
Name
Gets the name of this command option.
string Name { get; }
Property Value
NameLocalizations
Gets the localization dictionary for the name field of this command option.
IReadOnlyDictionary<string, string> NameLocalizations { get; }
Property Value
NameLocalized
Gets the localized name of this command option.
string NameLocalized { get; }
Property Value
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
Type
Gets the type of this IApplicationCommandOption.
ApplicationCommandOptionType Type { get; }