Interface IDiscordInteractionResponse
Represents a discord Interaction Response Structure API model. Docs: https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-response-structure
Namespace: Color_Chan.Discord.Core.Common.Models.Interaction
Assembly: Color-Chan.Discord.Core.dll
Syntax
public interface IDiscordInteractionResponse
Properties
| Improve this Doc View SourceData
An optional response message.
Declaration
IDiscordInteractionCallback Data { get; set; }
Property Value
Type | Description |
---|---|
IDiscordInteractionCallback |
Type
The type of interaction.
Declaration
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
DiscordInteractionResponseData ToDataModel()
Returns
Type | Description |
---|---|
DiscordInteractionResponseData | The converted DiscordInteractionResponseData. |