Class DiscordInteractionResponse
Represents a discord Interaction Response Structure API model. Docs: https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-response-structure
Inheritance
System.Object
DiscordInteractionResponse
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 DiscordInteractionResponse : IDiscordInteractionResponse, IEquatable<DiscordInteractionResponse>
Constructors
| Improve this Doc View SourceDiscordInteractionResponse()
Initializes a new DiscordInteractionResponse
Declaration
public DiscordInteractionResponse()
DiscordInteractionResponse(DiscordInteractionResponseData)
Initializes a new DiscordInteractionResponse
Declaration
public DiscordInteractionResponse(DiscordInteractionResponseData data)
Parameters
Type | Name | Description |
---|---|---|
DiscordInteractionResponseData | data | The data needed to create the DiscordInteractionResponse. |
Properties
| Improve this Doc View SourceData
An optional response message.
Declaration
public IDiscordInteractionCallback Data { get; set; }
Property Value
Type | Description |
---|---|
IDiscordInteractionCallback |
Type
The type of interaction.
Declaration
public DiscordInteractionCallbackType Type { get; set; }
Property Value
Type | Description |
---|---|
DiscordInteractionCallbackType |
Methods
| Improve this Doc View SourceToDataModel()
Converts the model back to a discord data model so that it can be send to discord.
Declaration
public DiscordInteractionResponseData ToDataModel()
Returns
Type | Description |
---|---|
DiscordInteractionResponseData | The converted DiscordInteractionResponseData. |
Implements
System.IEquatable<T>