Interface IDiscordApplicationCommandOption
Represents a discord Application Command Option Structure API model. Docs: https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-structure
Namespace: Color_Chan.Discord.Core.Common.Models.Application
Assembly: Color-Chan.Discord.Core.dll
Syntax
public interface IDiscordApplicationCommandOption
Properties
| Improve this Doc View SourceAutocomplete
Enable autocomplete interactions for this option.
Declaration
bool? Autocomplete { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
ChanelTypes
If the option is a channel type, the channels shown will be restricted to these types.
Declaration
IEnumerable<DiscordChannelType> ChanelTypes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordChannelType> |
Choices
Choices for string and int types for the user to pick from.
Declaration
IEnumerable<IDiscordApplicationCommandOptionChoice> Choices { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDiscordApplicationCommandOptionChoice> |
Description
1-100 character description
Declaration
string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IsRequired
If the parameter is required or optional--default false.
Declaration
bool? IsRequired { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
MaxValue
If the option is an INTEGER or NUMBER type, the maximum value permitted.
Declaration
int? MaxValue { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
MinValue
If the option is an INTEGER or NUMBER type, the minimum value permitted.
Declaration
int? MinValue { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
Name
1-32 lowercase character name matching ^[\w-]{1,32}$.
Declaration
string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SubOptions
If the option is a subcommand or subcommand group type, this nested options will be the parameters.
Declaration
IEnumerable<IDiscordApplicationCommandOption> SubOptions { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDiscordApplicationCommandOption> |
Type
value of application command option type.
Declaration
DiscordApplicationCommandOptionType Type { get; set; }
Property Value
Type | Description |
---|---|
DiscordApplicationCommandOptionType |