Class SocketApplicationCommandOption
Represents an option for a Discord.WebSocket.SocketApplicationCommand.
Assembly: Discord.Net.WebSocket.dll​
View Source​
Declaration
public class SocketApplicationCommandOption : IApplicationCommandOption
Properties​
Name​
Gets the name of this command option.
View Source​
Declaration
public string Name { get; }
Type​
Gets the type of this Discord.IApplicationCommandOption.
View Source​
Declaration
public ApplicationCommandOptionType Type { get; }
Description​
Gets the description of this command option.
View Source​
Declaration
public string Description { get; }
IsDefault​
Gets whether or not this is the first required option for the user to complete.
View Source​
Declaration
public bool? IsDefault { get; }
IsRequired​
Gets whether or not the parameter is required or optional.
View Source​
Declaration
public bool? IsRequired { get; }
MinValue​
Gets the smallest number value the user can input.
View Source​
Declaration
public double? MinValue { get; }
MaxValue​
Gets the largest number value the user can input.
View Source​
Declaration
public double? MaxValue { get; }
Choices​
Choices for string and int types for the user to pick from.
View Source​
Declaration
public IReadOnlyCollection<SocketApplicationCommandChoice> Choices { get; }
Options​
If the option is a subcommand or subcommand group type, this nested options will be the parameters.
View Source​
Declaration
public IReadOnlyCollection<SocketApplicationCommandOption> Options { get; }
ChannelTypes​
The allowed channel types for this option.
View Source​
Declaration
public IReadOnlyCollection<ChannelType> ChannelTypes { get; }
IApplicationCommandOption.Choices​
View Source​
Declaration
IReadOnlyCollection<IApplicationCommandOptionChoice> IApplicationCommandOption.Choices { get; }
IApplicationCommandOption.Options​
View Source​
Declaration
IReadOnlyCollection<IApplicationCommandOption> IApplicationCommandOption.Options { get; }