Search Results for

    Show / Hide Table of Contents

    Interface IDiscordSlashCommandHandler

    Handles all incoming slash command requests.

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

    Methods

    | Improve this Doc View Source

    HandleSlashCommandAsync(IDiscordInteraction)

    Handles a interaction slash command request.

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

    The interaction that was used.

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

    A InternalInteractionResponse containing the result of the slash command.

    Exceptions
    Type Condition
    System.ArgumentNullException

    Thrown when Data is null.

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