Interface IApplicationCommandOption
Options for the Discord.IApplicationCommand.
Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public interface IApplicationCommandOption
Properties​
Type​
Gets the type of this Discord.IApplicationCommandOption.
View Source​
Declaration
ApplicationCommandOptionType Type { get; }
Name​
Gets the name of this command option.
View Source​
Declaration
string Name { get; }
Description​
Gets the description of this command option.
View Source​
Declaration
string Description { get; }
IsDefault​
Gets whether or not this is the first required option for the user to complete.
View Source​
Declaration
bool? IsDefault { get; }
IsRequired​
Gets whether or not the parameter is required or optional.
View Source​
Declaration
bool? IsRequired { get; }
MinValue​
Gets the smallest number value the user can input.
View Source​
Declaration
double? MinValue { get; }
MaxValue​
Gets the largest number value the user can input.
View Source​
Declaration
double? MaxValue { get; }
Choices​
Gets the choices for string and int types for the user to pick from.
View Source​
Declaration
IReadOnlyCollection<IApplicationCommandOptionChoice> Choices { get; }
Options​
Gets the sub-options for this command option.
View Source​
Declaration
IReadOnlyCollection<IApplicationCommandOption> Options { get; }
ChannelTypes​
Gets the allowed channel types for this option.
View Source​
Declaration
IReadOnlyCollection<ChannelType> ChannelTypes { get; }