Class ApplicationCommandOptionProperties
Represents a Discord.IApplicationCommandOption for making slash commands.
Assembly: Discord.Net.Core.dll​
View Source​
public class ApplicationCommandOptionProperties
Properties​
Name​
Gets or sets the name of this option.
View Source​
public string Name { get; set; }
Description​
Gets or sets the description of this option.
View Source​
public string Description { get; set; }
Type​
Gets or sets the type of this option.
View Source​
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​
public bool? IsDefault { get; set; }
IsRequired​
Gets or sets if the option is required.
View Source​
public bool? IsRequired { get; set; }
IsAutocomplete​
Gets or sets whether or not this option supports autocomplete.
View Source​
public bool IsAutocomplete { get; set; }
MinValue​
Gets or sets the smallest number value the user can input.
View Source​
public double? MinValue { get; set; }
MaxValue​
Gets or sets the largest number value the user can input.
View Source​
public double? MaxValue { get; set; }
Choices​
Gets or sets the choices for string and int types for the user to pick from.
View Source​
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​
public List<ApplicationCommandOptionProperties> Options { get; set; }
ChannelTypes​
Gets or sets the allowed channel types for this option.
View Source​
public List<ChannelType> ChannelTypes { get; set; }