Class DiscordInteractionRequest
Represents a discord Interaction Request Structure API model. Docs: https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure
Inheritance
System.Object
DiscordInteractionRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Color_Chan.Discord.Rest.Models.Interaction
Assembly: Color-Chan.Discord.Rest.dll
Syntax
public class DiscordInteractionRequest : IDiscordInteractionRequest, IEquatable<DiscordInteractionRequest>
Constructors
| Improve this Doc View SourceDiscordInteractionRequest(DiscordInteractionRequestData)
Initializes a new DiscordInteractionRequest
Declaration
public DiscordInteractionRequest(DiscordInteractionRequestData data)
Parameters
Type | Name | Description |
---|---|---|
DiscordInteractionRequestData | data | The data needed to create the DiscordInteractionRequest. |
Properties
| Improve this Doc View SourceComponentType
For components, the type of the component.
Declaration
public DiscordComponentType? ComponentType { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordComponentType> |
CustomId
For components, the custom_id of the component.
Declaration
public string CustomId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Id
The ID of the invoked command.
Declaration
public ulong Id { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
Name
The name of the invoked command.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Options
The params + values from the user.
Declaration
public IEnumerable<IDiscordInteractionOption> Options { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDiscordInteractionOption> |
Resolved
Converted users + roles + channels.
Declaration
public IDiscordInteractionResolved Resolved { get; set; }
Property Value
Type | Description |
---|---|
IDiscordInteractionResolved |
TargetId
Id the of user or message targeted by a user or message command.
Declaration
public ulong? TargetId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Type
The type of the invoked command.
Declaration
public DiscordApplicationCommandTypes Type { get; set; }
Property Value
Type | Description |
---|---|
DiscordApplicationCommandTypes |
Values
The values the user selected.
Declaration
public IDiscordSelectOption Values { get; set; }
Property Value
Type | Description |
---|---|
IDiscordSelectOption |
Implements
System.IEquatable<T>