@tanzanite/discord-akairo
    Preparing search index...

    Interface CommandHandlerEvents

    interface CommandHandlerEvents {
        commandBlocked: [
            message: TextCommandMessage,
            command: Command,
            reason: string,
        ];
        commandBreakout: [
            message: TextCommandMessage,
            command: Command,
            breakMessage: Message<boolean>,
        ];
        commandCancelled: [
            message: TextCommandMessage,
            command: Command,
            retryMessage?: Message<boolean>,
        ];
        commandFinished: [
            message: TextCommandMessage,
            command: Command,
            args: any,
            returnValue: any,
        ];
        commandInvalid: [message: TextCommandMessage, command: Command];
        commandLocked: [message: MessageUnion, command: Command];
        commandStarted: [message: TextCommandMessage, command: Command, args: any];
        commandTimeout: [
            message: TextCommandMessage,
            command: Command,
            time: number,
        ];
        cooldown: [message: MessageUnion, command: Command, remaining: number];
        error: [error: Error, message: MessageUnion, command?: Command];
        inPrompt: [message: TextCommandMessage];
        load: [mod: Command, isReload: boolean];
        messageBlocked: [message: MessageUnion, reason: string];
        messageInvalid: [message: TextCommandMessage];
        missingPermissions: [
            message: TextCommandMessage,
            command: Command,
            type: "client"
            | "user",
            missing?: any,
        ];
        newListener: [
            eventName: string
            | symbol,
            listener: (...args: any[]) => void,
        ];
        remove: [mod: Command];
        removeListener: [
            eventName: string
            | symbol,
            listener: (...args: any[]) => void,
        ];
        slashBlocked: [
            message: SlashCommandMessage,
            command: Command,
            reason: string,
        ];
        slashError: [error: Error, message: SlashCommandMessage, command: Command];
        slashFinished: [
            message: SlashCommandMessage,
            command: Command,
            args: any,
            returnValue: any,
        ];
        slashMissingPermissions: [
            message: SlashCommandMessage,
            command: Command,
            type: "client"
            | "user",
            missing?: any,
        ];
        slashNotFound: [
            interaction: | ChatInputCommandInteraction<CacheType>
            | AutocompleteInteraction<CacheType>,
        ];
        slashOnly: [message: Message<boolean>, command: Command];
        slashStarted: [message: SlashCommandMessage, command: Command, args: any];
    }

    Hierarchy (View Summary)

    Index

    Properties

    commandBlocked: [message: TextCommandMessage, command: Command, reason: string]
    commandBreakout: [
        message: TextCommandMessage,
        command: Command,
        breakMessage: Message<boolean>,
    ]
    commandCancelled: [
        message: TextCommandMessage,
        command: Command,
        retryMessage?: Message<boolean>,
    ]
    commandFinished: [
        message: TextCommandMessage,
        command: Command,
        args: any,
        returnValue: any,
    ]
    commandInvalid: [message: TextCommandMessage, command: Command]
    commandLocked: [message: MessageUnion, command: Command]
    commandStarted: [message: TextCommandMessage, command: Command, args: any]
    commandTimeout: [message: TextCommandMessage, command: Command, time: number]
    cooldown: [message: MessageUnion, command: Command, remaining: number]
    error: [error: Error, message: MessageUnion, command?: Command]
    inPrompt: [message: TextCommandMessage]
    load: [mod: Command, isReload: boolean]
    messageBlocked: [message: MessageUnion, reason: string]
    messageInvalid: [message: TextCommandMessage]
    missingPermissions: [
        message: TextCommandMessage,
        command: Command,
        type: "client"
        | "user",
        missing?: any,
    ]
    newListener: [eventName: string | symbol, listener: (...args: any[]) => void]
    remove: [mod: Command]
    removeListener: [eventName: string | symbol, listener: (...args: any[]) => void]
    slashBlocked: [message: SlashCommandMessage, command: Command, reason: string]
    slashError: [error: Error, message: SlashCommandMessage, command: Command]
    slashFinished: [
        message: SlashCommandMessage,
        command: Command,
        args: any,
        returnValue: any,
    ]
    slashMissingPermissions: [
        message: SlashCommandMessage,
        command: Command,
        type: "client"
        | "user",
        missing?: any,
    ]
    slashNotFound: [
        interaction: | ChatInputCommandInteraction<CacheType>
        | AutocompleteInteraction<CacheType>,
    ]
    slashOnly: [message: Message<boolean>, command: Command]
    slashStarted: [message: SlashCommandMessage, command: Command, args: any]