Class SocketSlashCommandDataOption
Represents a Websocket-based IApplicationCommandInteractionDataOption received by the gateway.
public class SocketSlashCommandDataOption : IApplicationCommandInteractionDataOption
- Inheritance
-
SocketSlashCommandDataOption
- Implements
- Inherited Members
Properties
Name
Gets the name of the parameter.
public string Name { get; }
Property Value
Options
Gets the sub command options received for this sub command group.
public IReadOnlyCollection<SocketSlashCommandDataOption> 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(SocketSlashCommandDataOption)
public static explicit operator bool(SocketSlashCommandDataOption option)
Parameters
option
SocketSlashCommandDataOption
Returns
explicit operator int(SocketSlashCommandDataOption)
public static explicit operator int(SocketSlashCommandDataOption option)
Parameters
option
SocketSlashCommandDataOption
Returns
explicit operator string(SocketSlashCommandDataOption)
public static explicit operator string(SocketSlashCommandDataOption option)
Parameters
option
SocketSlashCommandDataOption