Search Results for

    Show / Hide Table of Contents

    Class DiscordInteractionCallback

    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
    System.Object
    DiscordInteractionCallback
    Implements
    IDiscordInteractionCallback
    System.IEquatable<DiscordInteractionCallback>
    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 DiscordInteractionCallback : IDiscordInteractionCallback, IEquatable<DiscordInteractionCallback>

    Constructors

    | Improve this Doc View Source

    DiscordInteractionCallback()

    Initializes a new DiscordInteractionCallback

    Declaration
    public DiscordInteractionCallback()
    | Improve this Doc View Source

    DiscordInteractionCallback(DiscordInteractionCallbackData)

    Initializes a new DiscordInteractionCallback

    Declaration
    public DiscordInteractionCallback(DiscordInteractionCallbackData data)
    Parameters
    Type Name Description
    DiscordInteractionCallbackData data

    The data needed to create the DiscordInteractionCallback.

    Properties

    | Improve this Doc View Source

    AllowedMentions

    Allowed mentions object.

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

    Components

    Message components.

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

    Content

    The message content.

    Declaration
    public string Content { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Embeds

    A list of embed that will be added tot he response.

    Declaration
    public 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
    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
    public bool? IsTts { get; set; }
    Property Value
    Type Description
    System.Nullable<System.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
    public DiscordInteractionCallbackData ToDataModel()
    Returns
    Type Description
    DiscordInteractionCallbackData

    The converted DiscordInteractionCallbackData.

    Implements

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