Search Results for

    Show / Hide Table of Contents

    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 Source

    Data

    An optional response message.

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

    Type

    The type of interaction.

    Declaration
    DiscordInteractionCallbackType Type { get; set; }
    Property Value
    Type Description
    DiscordInteractionCallbackType

    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
    DiscordInteractionResponseData ToDataModel()
    Returns
    Type Description
    DiscordInteractionResponseData

    The converted DiscordInteractionResponseData.

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