Skip to main content

Class SocketSlashCommandDataOption

Represents a Websocket-based Discord.IApplicationCommandInteractionDataOption received by the gateway.

Assembly: Discord.Net.WebSocket.dll​
View Source​
Declaration
public class SocketSlashCommandDataOption : 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​

The sub command options received for this sub command group.

View Source​
Declaration
public IReadOnlyCollection<SocketSlashCommandDataOption> Options { get; }

IApplicationCommandInteractionDataOption.Options​

View Source​
Declaration
IReadOnlyCollection<IApplicationCommandInteractionDataOption> IApplicationCommandInteractionDataOption.Options { get; }

Implements​