Class RestSlashCommandDataOption
Represents a REST-based option for a slash command.
Assembly: Discord.Net.Rest.dll​
View Source​
Declaration
public class RestSlashCommandDataOption : IApplicationCommandInteractionDataOption
Properties​
Name​
Gets the name of the parameter.
View Source​
Declaration
public string Name { get; }
Value​
Gets the value of the pair. <div class="NOTE"><h5>note</h5><p> This objects type can be any one of the option types in Discord.ApplicationCommandOptionType. </p></div>
View Source​
Declaration
public object Value { get; }
Type​
Gets the type of this data's option.
View Source​
Declaration
public ApplicationCommandOptionType Type { get; }
Options​
Gets a collection of sub command options received for this sub command group.
View Source​
Declaration
public IReadOnlyCollection<RestSlashCommandDataOption> Options { get; }
IApplicationCommandInteractionDataOption.Options​
View Source​
Declaration
IReadOnlyCollection<IApplicationCommandInteractionDataOption> IApplicationCommandInteractionDataOption.Options { get; }