Search Results for

    Show / Hide Table of Contents

    Class DiscordInteractionResponse

    Represents a discord Interaction Response Structure API model. Docs: https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-response-structure

    Inheritance
    System.Object
    DiscordInteractionResponse
    Implements
    IDiscordInteractionResponse
    System.IEquatable<DiscordInteractionResponse>
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Color_Chan.Discord.Rest.Models.Interaction
    Assembly: Color-Chan.Discord.Rest.dll
    Syntax
    public class DiscordInteractionResponse : IDiscordInteractionResponse, IEquatable<DiscordInteractionResponse>

    Constructors

    | Improve this Doc View Source

    DiscordInteractionResponse()

    Initializes a new DiscordInteractionResponse

    Declaration
    public DiscordInteractionResponse()
    | Improve this Doc View Source

    DiscordInteractionResponse(DiscordInteractionResponseData)

    Initializes a new DiscordInteractionResponse

    Declaration
    public DiscordInteractionResponse(DiscordInteractionResponseData data)
    Parameters
    Type Name Description
    DiscordInteractionResponseData data

    The data needed to create the DiscordInteractionResponse.

    Properties

    | Improve this Doc View Source

    Data

    An optional response message.

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

    Type

    The type of interaction.

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

    The converted DiscordInteractionResponseData.

    Implements

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