Search Results for

    Show / Hide Table of Contents

    Interface IComponentInteraction

    Represents an interaction type for Message Components.

    Inherited Members
    IDiscordInteraction.Id
    IDiscordInteraction.Type
    IDiscordInteraction.Token
    IDiscordInteraction.Version
    IDiscordInteraction.HasResponded
    IDiscordInteraction.User
    IDiscordInteraction.UserLocale
    IDiscordInteraction.GuildLocale
    IDiscordInteraction.IsDMInteraction
    IDiscordInteraction.ChannelId
    IDiscordInteraction.GuildId
    IDiscordInteraction.ApplicationId
    IDiscordInteraction.RespondAsync(String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    IDiscordInteraction.RespondWithFileAsync(Stream, String, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    IDiscordInteraction.RespondWithFileAsync(String, String, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    IDiscordInteraction.RespondWithFileAsync(FileAttachment, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    IDiscordInteraction.RespondWithFilesAsync(IEnumerable<FileAttachment>, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    IDiscordInteraction.FollowupAsync(String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    IDiscordInteraction.FollowupWithFileAsync(Stream, String, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    IDiscordInteraction.FollowupWithFileAsync(String, String, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    IDiscordInteraction.FollowupWithFileAsync(FileAttachment, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    IDiscordInteraction.FollowupWithFilesAsync(IEnumerable<FileAttachment>, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    IDiscordInteraction.GetOriginalResponseAsync(RequestOptions)
    IDiscordInteraction.ModifyOriginalResponseAsync(Action<MessageProperties>, RequestOptions)
    IDiscordInteraction.DeleteOriginalResponseAsync(RequestOptions)
    IDiscordInteraction.DeferAsync(Boolean, RequestOptions)
    IDiscordInteraction.RespondWithModalAsync(Modal, RequestOptions)
    ISnowflakeEntity.CreatedAt
    Namespace: Discord
    Assembly: Discord.Net.Core.dll
    Syntax
    public interface IComponentInteraction : IDiscordInteraction, ISnowflakeEntity, IEntity<ulong>

    Properties

    | Improve this Doc View Source

    Data

    Gets the data received with this component interaction.

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

    Message

    Gets the message that contained the trigger for this interaction.

    Declaration
    IUserMessage Message { get; }
    Property Value
    Type Description
    IUserMessage

    Methods

    | Improve this Doc View Source

    DeferLoadingAsync(Boolean, RequestOptions)

    Defers an interaction with the response type 5 (DeferredChannelMessageWithSource).

    Declaration
    Task DeferLoadingAsync(bool ephemeral = false, RequestOptions options = null)
    Parameters
    Type Name Description
    Boolean ephemeral

    true to defer ephemerally, otherwise false.

    RequestOptions options

    The options to be used when sending the request.

    Returns
    Type Description
    Task

    A task that represents the asynchronous operation of acknowledging the interaction.

    | Improve this Doc View Source

    UpdateAsync(Action<MessageProperties>, RequestOptions)

    Updates the message which this component resides in with the type UpdateMessage

    Declaration
    Task UpdateAsync(Action<MessageProperties> func, RequestOptions options = null)
    Parameters
    Type Name Description
    Action<MessageProperties> func

    A delegate containing the properties to modify the message with.

    RequestOptions options

    The options to be used when sending the request.

    Returns
    Type Description
    Task

    A task that represents the asynchronous operation of updating the message.

    Extension Methods

    IDiscordInteractionExtentions.RespondWithModalAsync<T>(IDiscordInteraction, String, RequestOptions, Action<ModalBuilder>)

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2022 3.7.2