Interface IDiscordInteractionCallback
Represents a discord Interaction Callback Structure API model. Docs: https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-data-structure
Namespace: Color_Chan.Discord.Core.Common.Models.Interaction
Assembly: Color-Chan.Discord.Core.dll
Syntax
public interface IDiscordInteractionCallback
Properties
| Improve this Doc View SourceAllowedMentions
Allowed mentions object.
Declaration
IDiscordAllowedMentions AllowedMentions { get; set; }
Property Value
Type | Description |
---|---|
IDiscordAllowedMentions |
Components
Message components.
Declaration
IEnumerable<IDiscordComponent> Components { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDiscordComponent> |
Content
The message content.
Declaration
string Content { get; set; }
Property Value
Type | Description |
---|---|
String |
Embeds
A list of embed that will be added tot he response.
Declaration
IEnumerable<IDiscordEmbed> Embeds { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDiscordEmbed> |
Remarks
Supports up to 10 embeds.
Flags
Interaction callback flags.
Declaration
DiscordMessageFlags? Flags { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordMessageFlags> |
Remarks
Only SuppressEmbeds and Ephemeral can be set.
IsTts
Whether or not the response is TTS.
Declaration
bool? IsTts { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |
Methods
| Improve this Doc View SourceToDataModel()
Converts the model back to a discord data model so that it can be send to discord.
Declaration
DiscordInteractionCallbackData ToDataModel()
Returns
Type | Description |
---|---|
DiscordInteractionCallbackData | The converted DiscordInteractionCallbackData. |