Search Results for

    Show / Hide Table of Contents

    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 Source

    AllowedMentions

    Allowed mentions object.

    Declaration
    IDiscordAllowedMentions AllowedMentions { get; set; }
    Property Value
    Type Description
    IDiscordAllowedMentions
    | Improve this Doc View Source

    Components

    Message components.

    Declaration
    IEnumerable<IDiscordComponent> Components { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<IDiscordComponent>
    | Improve this Doc View Source

    Content

    The message content.

    Declaration
    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
    IEnumerable<IDiscordEmbed> Embeds { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<IDiscordEmbed>
    Remarks

    Supports up to 10 embeds.

    | Improve this Doc View Source

    Flags

    Interaction callback flags.

    Declaration
    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
    bool? IsTts { get; set; }
    Property Value
    Type Description
    System.Nullable<Boolean>

    Methods

    | Improve this Doc View Source

    ToDataModel()

    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.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX