Class ApplicationCommandOptionProperties
Represents a IApplicationCommandOption for making slash commands.
Namespace: Discord
Assembly: Discord.Net.Core.dll
Syntax
public class ApplicationCommandOptionProperties : object
Properties
| Improve this Doc View SourceChannelTypes
Gets or sets the allowed channel types for this option.
Declaration
public List<ChannelType> ChannelTypes { get; set; }
Property Value
Type | Description |
---|---|
List<ChannelType> |
Choices
Gets or sets the choices for string and int types for the user to pick from.
Declaration
public List<ApplicationCommandOptionChoiceProperties> Choices { get; set; }
Property Value
Type | Description |
---|---|
List<ApplicationCommandOptionChoiceProperties> |
Description
Gets or sets the description of this option.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
String |
DescriptionLocalizations
Gets or sets the localization dictionary for the description field of this option.
Declaration
public IDictionary<string, string> DescriptionLocalizations { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<String, String> |
IsAutocomplete
Gets or sets whether or not this option supports autocomplete.
Declaration
public bool IsAutocomplete { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
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.
Declaration
public bool? IsDefault { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
IsRequired
Gets or sets if the option is required.
Declaration
public bool? IsRequired { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
MaxLength
Gets or sets the maximum allowed length for a string input.
Declaration
public int? MaxLength { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
MaxValue
Gets or sets the largest number value the user can input.
Declaration
public double? MaxValue { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Double> |
MinLength
Gets or sets the minimum allowed length for a string input.
Declaration
public int? MinLength { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
MinValue
Gets or sets the smallest number value the user can input.
Declaration
public double? MinValue { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Double> |
Name
Gets or sets the name of this option.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
NameLocalizations
Gets or sets the localization dictionary for the name field of this option.
Declaration
public IDictionary<string, string> NameLocalizations { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<String, String> |
Options
Gets or sets if this option is a subcommand or subcommand group type, these nested options will be the parameters.
Declaration
public List<ApplicationCommandOptionProperties> Options { get; set; }
Property Value
Type | Description |
---|---|
List<ApplicationCommandOptionProperties> |
Type
Gets or sets the type of this option.
Declaration
public ApplicationCommandOptionType Type { get; set; }
Property Value
Type | Description |
---|---|
ApplicationCommandOptionType |