Table of Contents

Class SocketSlashCommandDataOption

Namespace
Discord.WebSocket
Assembly
Discord.Net.WebSocket.dll

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

string

Options

Gets the sub command options received for this sub command group.

public IReadOnlyCollection<SocketSlashCommandDataOption> Options { get; }

Property Value

IReadOnlyCollection<SocketSlashCommandDataOption>

Type

Gets the type of this data's option.

public ApplicationCommandOptionType Type { get; }

Property Value

ApplicationCommandOptionType

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

object

Operators

explicit operator bool(SocketSlashCommandDataOption)

public static explicit operator bool(SocketSlashCommandDataOption option)

Parameters

option SocketSlashCommandDataOption

Returns

bool

explicit operator int(SocketSlashCommandDataOption)

public static explicit operator int(SocketSlashCommandDataOption option)

Parameters

option SocketSlashCommandDataOption

Returns

int

explicit operator string(SocketSlashCommandDataOption)

public static explicit operator string(SocketSlashCommandDataOption option)

Parameters

option SocketSlashCommandDataOption

Returns

string