Class DiscordInteractionDataOption
Represents parameters for interaction commands.
Inheritance
System.Object
DiscordInteractionDataOption
Namespace: DisCatSharp.Entities
Assembly: DisCatSharp.dll
Syntax
public sealed class DiscordInteractionDataOption
Properties
| Improve this Doc View SourceFocused
Whether this option is currently focused by the user. Only applicable for autocomplete option choices.
Declaration
public bool Focused { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Gets the name of this interaction parameter.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Options
Gets the additional parameters if this parameter is a subcommand.
Declaration
public IEnumerable<DiscordInteractionDataOption> Options { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordInteractionDataOption> |
Type
Gets the type of this interaction parameter.
Declaration
public ApplicationCommandOptionType Type { get; }
Property Value
Type | Description |
---|---|
ApplicationCommandOptionType |
Value
Gets the value of this interaction parameter.
This can be cast to a langword_csharp_long, langword_csharp_bool, langword_csharp_string, langword_csharp_double or langword_csharp_ulong depending on the System.Type
Declaration
public object Value { get; }
Property Value
Type | Description |
---|---|
System.Object |