Class DiscordInteractionRequestData
Represents a discord Interaction Request Structure API model. Docs: https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Color_Chan.Discord.Core.Common.API.DataModels.Interaction
Assembly: Color-Chan.Discord.Core.dll
Syntax
public class DiscordInteractionRequestData : IEquatable<DiscordInteractionRequestData>
Properties
| Improve this Doc View SourceComponentType
For components, the type of the component.
Declaration
[JsonPropertyName("component_type")]
public DiscordComponentType? ComponentType { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordComponentType> |
CustomId
For components, the custom_id of the component.
Declaration
[JsonPropertyName("custom_id")]
public string CustomId { get; set; }
Property Value
Type | Description |
---|---|
String |
Id
The ID of the invoked command.
Declaration
[JsonPropertyName("id")]
public ulong Id { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
Name
The name of the invoked command.
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
Options
The params + values from the user.
Declaration
[JsonPropertyName("options")]
public IEnumerable<DiscordInteractionOptionData> Options { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordInteractionOptionData> |
Resolved
Converted users + roles + channels.
Declaration
[JsonPropertyName("resolved")]
public DiscordInteractionResolvedData Resolved { get; set; }
Property Value
Type | Description |
---|---|
DiscordInteractionResolvedData |
TargetId
Id the of user or message targeted by a user or message command.
Declaration
[JsonPropertyName("target_id")]
public ulong? TargetId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Type
The type of the invoked command.
Declaration
[JsonPropertyName("type")]
public DiscordApplicationCommandTypes Type { get; set; }
Property Value
Type | Description |
---|---|
DiscordApplicationCommandTypes |
Values
The values the user selected.
Declaration
[JsonPropertyName("values")]
public DiscordSelectOptionData Values { get; set; }
Property Value
Type | Description |
---|---|
DiscordSelectOptionData |