Table of Contents

Class RestSlashCommandDataOption

Namespace
Discord.Rest
Assembly
Discord.Net.Rest.dll

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

string

Options

Gets a collection of sub command options received for this sub command group.

public IReadOnlyCollection<RestSlashCommandDataOption> Options { get; }

Property Value

IReadOnlyCollection<RestSlashCommandDataOption>

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(RestSlashCommandDataOption)

public static explicit operator bool(RestSlashCommandDataOption option)

Parameters

option RestSlashCommandDataOption

Returns

bool

explicit operator int(RestSlashCommandDataOption)

public static explicit operator int(RestSlashCommandDataOption option)

Parameters

option RestSlashCommandDataOption

Returns

int

explicit operator string(RestSlashCommandDataOption)

public static explicit operator string(RestSlashCommandDataOption option)

Parameters

option RestSlashCommandDataOption

Returns

string