Class RestSlashCommandDataOption
Represents a REST-based option for a slash command.
public class RestSlashCommandDataOption : IApplicationCommandInteractionDataOption
- Inheritance
-
RestSlashCommandDataOption
- Implements
- Inherited Members
Properties
Name
Gets the name of the parameter.
public string Name { get; }
Property Value
Options
Gets a collection of sub command options received for this sub command group.
public IReadOnlyCollection<RestSlashCommandDataOption> Options { get; }
Property Value
Type
Gets the type of this data's option.
public ApplicationCommandOptionType Type { get; }
Property Value
Value
Gets the value of the pair.
note
This objects type can be any one of the option types in ApplicationCommandOptionType.
public object Value { get; }
Property Value
Operators
explicit operator bool(RestSlashCommandDataOption)
public static explicit operator bool(RestSlashCommandDataOption option)
Parameters
option
RestSlashCommandDataOption
Returns
explicit operator int(RestSlashCommandDataOption)
public static explicit operator int(RestSlashCommandDataOption option)
Parameters
option
RestSlashCommandDataOption
Returns
explicit operator string(RestSlashCommandDataOption)
public static explicit operator string(RestSlashCommandDataOption option)
Parameters
option
RestSlashCommandDataOption