Skip to main content

Class ApplicationCommandOptionProperties

Represents a Discord.IApplicationCommandOption for making slash commands.

Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public class ApplicationCommandOptionProperties

Properties​

Name​

Gets or sets the name of this option.

View Source​
Declaration
public string Name { get; set; }

Description​

Gets or sets the description of this option.

View Source​
Declaration
public string Description { get; set; }

Type​

Gets or sets the type of this option.

View Source​
Declaration
public ApplicationCommandOptionType Type { get; set; }

IsDefault​

Gets or sets whether or not this options is the first required option for the user to complete. only one option can be default.

View Source​
Declaration
public bool? IsDefault { get; set; }

IsRequired​

Gets or sets if the option is required.

View Source​
Declaration
public bool? IsRequired { get; set; }

IsAutocomplete​

Gets or sets whether or not this option supports autocomplete.

View Source​
Declaration
public bool IsAutocomplete { get; set; }

MinValue​

Gets or sets the smallest number value the user can input.

View Source​
Declaration
public double? MinValue { get; set; }

MaxValue​

Gets or sets the largest number value the user can input.

View Source​
Declaration
public double? MaxValue { get; set; }

Choices​

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

View Source​
Declaration
public List<ApplicationCommandOptionChoiceProperties> Choices { get; set; }

Options​

Gets or sets if this option is a subcommand or subcommand group type, these nested options will be the parameters.

View Source​
Declaration
public List<ApplicationCommandOptionProperties> Options { get; set; }

ChannelTypes​

Gets or sets the allowed channel types for this option.

View Source​
Declaration
public List<ChannelType> ChannelTypes { get; set; }