Class DiscordInteractionData
Represents the inner data payload of a DiscordInteraction.
Namespace: DisCatSharp.Entities
Assembly: DisCatSharp.dll
Syntax
public sealed class DiscordInteractionData : SnowflakeObject
Properties
| Improve this Doc View SourceComponents
Gets the components (Applicable to modal submits).
Declaration
public IEnumerable<DiscordActionRowComponentResult> Components { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordActionRowComponentResult> |
ComponentType
The type of component that invoked this interaction, if applicable.
Declaration
public ComponentType ComponentType { get; }
Property Value
Type | Description |
---|---|
ComponentType |
CustomId
The Id of the component that invoked this interaction, if applicable.
Declaration
public string CustomId { get; }
Property Value
Type | Description |
---|---|
System.String |
Name
Gets the name of the invoked interaction.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Options
Gets the parameters and values of the invoked interaction.
Declaration
public IEnumerable<DiscordInteractionDataOption> Options { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordInteractionDataOption> |
Resolved
Gets the Discord snowflake objects resolved from this interaction's arguments.
Declaration
public DiscordInteractionResolvedCollection Resolved { get; }
Property Value
Type | Description |
---|---|
DiscordInteractionResolvedCollection |
Type
Gets the type of the interaction.
Declaration
public ApplicationCommandType Type { get; }
Property Value
Type | Description |
---|---|
ApplicationCommandType |
Values
Gets the values of the interaction.
Declaration
public string[] Values { get; }
Property Value
Type | Description |
---|---|
System.String[] |