Class DiscordInteractionDataOption
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
Represents parameters for interaction commands.
public sealed class DiscordInteractionDataOption : ObservableApiObject
- Inheritance
-
DiscordInteractionDataOption
- Inherited Members
Properties
- Focused
Whether this option is currently focused by the user. Only applicable for autocomplete option choices.
- Name
Gets the name of this interaction parameter.
- Options
Gets the additional parameters if this parameter is a subcommand.
- RawValueString
Gets the raw, unparsed interaction value exactly as it arrived from Discord.
- Type
Gets the type of this interaction parameter.
- Value
Gets the value of this interaction parameter.
This can be cast to a long, bool, string, double or ulong depending on the Type
Methods
- TryGetValue<T>(out T?)
Attempts to parse the current interaction option value into the requested type without throwing.