Class RestApplicationCommandOption
Represents a Rest-based implementation of Discord.IApplicationCommandOption.
Assembly: Discord.Net.Rest.dll​
View Source​
Declaration
public class RestApplicationCommandOption : IApplicationCommandOption
Properties​
Type​
Gets the type of this Discord.IApplicationCommandOption.
View Source​
Declaration
public ApplicationCommandOptionType Type { get; }
Name​
Gets the name of this command option.
View Source​
Declaration
public string Name { 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​
A collection of Discord.Rest.RestApplicationCommandChoice's for this command.
View Source​
Declaration
public IReadOnlyCollection<RestApplicationCommandChoice> Choices { get; }
Options​
A collection of Discord.Rest.RestApplicationCommandOption's for this command.
View Source​
Declaration
public IReadOnlyCollection<RestApplicationCommandOption> Options { get; }
ChannelTypes​
The allowed channel types for this option.
View Source​
Declaration
public IReadOnlyCollection<ChannelType> ChannelTypes { get; }
IApplicationCommandOption.Options​
View Source​
Declaration
IReadOnlyCollection<IApplicationCommandOption> IApplicationCommandOption.Options { get; }
IApplicationCommandOption.Choices​
View Source​
Declaration
IReadOnlyCollection<IApplicationCommandOptionChoice> IApplicationCommandOption.Choices { get; }