Search Results for

    Show / Hide Table of Contents

    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

    Inheritance
    Object
    DiscordInteractionCallbackData
    Implements
    IEquatable<DiscordInteractionCallbackData>
    Inherited Members
    System.Object.Equals(System.Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Object.ToString()
    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 Source

    AllowedMentions

    Allowed mentions object.

    Declaration
    [JsonPropertyName("allowed_mentions")]
    public DiscordAllowedMentionsData AllowedMentions { get; set; }
    Property Value
    Type Description
    DiscordAllowedMentionsData
    | Improve this Doc View Source

    Components

    Message components.

    Declaration
    [JsonPropertyName("components")]
    public IEnumerable<DiscordComponentData> Components { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<DiscordComponentData>
    | Improve this Doc View Source

    Content

    The message content.

    Declaration
    [JsonPropertyName("content")]
    public string Content { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    IsTts

    Whether or not the response is TTS.

    Declaration
    [JsonPropertyName("tts")]
    public bool? IsTts { get; set; }
    Property Value
    Type Description
    System.Nullable<Boolean>

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX