Class RestSlashCommandDataOption
Represents a REST-based option for a slash command.
Inheritance
RestSlashCommandDataOption
Assembly: Discord.Net.Rest.dll
Syntax
public class RestSlashCommandDataOption : object, IApplicationCommandInteractionDataOption
Properties
|
Improve this Doc
View Source
Name
Declaration
public string Name { get; }
Property Value
|
Improve this Doc
View Source
Options
Gets a collection of sub command options received for this sub command group.
Declaration
public IReadOnlyCollection<RestSlashCommandDataOption> Options { get; }
Property Value
|
Improve this Doc
View Source
Type
Gets the type of this data's option.
Declaration
public ApplicationCommandOptionType Type { get; }
Property Value
|
Improve this Doc
View Source
Value
Declaration
public object Value { get; }
Property Value
Operators
|
Improve this Doc
View Source
Explicit(RestSlashCommandDataOption to Boolean)
Declaration
public static explicit operator bool (RestSlashCommandDataOption option)
Parameters
Returns
|
Improve this Doc
View Source
Explicit(RestSlashCommandDataOption to Int32)
Declaration
public static explicit operator int (RestSlashCommandDataOption option)
Parameters
Returns
|
Improve this Doc
View Source
Explicit(RestSlashCommandDataOption to String)
Declaration
public static explicit operator string (RestSlashCommandDataOption option)
Parameters
Returns
Implements