Table of Contents

Class DiscordApplicationCommandOption

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Represents a parameter for a DiscordApplicationCommand.

public class DiscordApplicationCommandOption
Inheritance
DiscordApplicationCommandOption
Inherited Members

Constructors

DiscordApplicationCommandOption(string, string, ApplicationCommandOptionType, bool, IEnumerable<DiscordApplicationCommandOptionChoice>?, IEnumerable<DiscordApplicationCommandOption>?, IEnumerable<ChannelType>?, bool, object?, object?, DiscordApplicationCommandLocalization?, DiscordApplicationCommandLocalization?, int?, int?)

Creates a new instance of a DiscordApplicationCommandOption.

Properties

AutoComplete

Gets whether this option provides autocompletion.

ChannelTypes

Gets the optional allowed channel types.

Choices

Gets the optional choices for this command parameter. Not applicable for auto-complete options.

Description

Gets the description of this command parameter.

DescriptionLocalizations

Gets the description localizations.

MaximumLength

Gets the minimum length for this slash command parameter.

MaximumValue

Gets the maximum value for this slash command parameter.

MinimumLength

Gets the maximum length for this slash command parameter.

MinimumValue

Gets the minimum value for this slash command parameter.

Name

Gets the name of this command parameter.

NameLocalizations

Gets the name localizations.

Options

Gets the optional subcommand parameters for this parameter.

Required

Gets whether this command parameter is required.

Type

Gets the type of this command parameter.