Search Results for

    Show / Hide Table of Contents

    Interface IComponentInteractionHandler

    Handles all incoming component interactions requests.

    Namespace: Color_Chan.Discord.Commands.Services.InteractionHandlers
    Assembly: Color-Chan.Discord.Commands.dll
    Syntax
    public interface IComponentInteractionHandler

    Methods

    | Improve this Doc View Source

    HandleComponentInteractionAsync(IDiscordInteraction)

    Handles a component interaction request.

    Declaration
    Task<InternalInteractionResponse> HandleComponentInteractionAsync(IDiscordInteraction interaction)
    Parameters
    Type Name Description
    IDiscordInteraction interaction

    The IDiscordInteraction that was requested.

    Returns
    Type Description
    System.Threading.Tasks.Task<InternalInteractionResponse>

    A InternalInteractionResponse containing the result of the component interaction.

    Exceptions
    Type Condition
    System.ArgumentNullException

    Thrown when the Data is null.

    System.NullReferenceException

    Thrown when no user or member was found.

    ComponentInteractionResultException

    Thrown when no channel id was found.

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