Class DiscordInteractionCallbackData
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
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 DiscordInteractionCallbackData : IEquatable<DiscordInteractionCallbackData>
Properties
| Improve this Doc View SourceAllowedMentions
Allowed mentions object.
Declaration
[JsonPropertyName("allowed_mentions")]
public DiscordAllowedMentionsData AllowedMentions { get; set; }
Property Value
Type | Description |
---|---|
DiscordAllowedMentionsData |
Components
Message components.
Declaration
[JsonPropertyName("components")]
public IEnumerable<DiscordComponentData> Components { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordComponentData> |
Content
The message content.
Declaration
[JsonPropertyName("content")]
public string Content { get; set; }
Property Value
Type | Description |
---|---|
String |
Embeds
A list of embed that will be added tot he response.
Declaration
[JsonPropertyName("embeds")]
public IEnumerable<DiscordEmbedData> Embeds { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordEmbedData> |
Remarks
Supports up to 10 embeds.
Flags
Interaction callback flags.
Declaration
[JsonPropertyName("flags")]
public 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
[JsonPropertyName("tts")]
public bool? IsTts { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |