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

    Type Alias ArgumentPromptOptions

    A prompt to run if the user did not input the argument correctly. Can only be used if there is not a default value (unless optional is true).

    type ArgumentPromptOptions = {
        breakout?: boolean;
        cancel?: ArgumentPromptResponse;
        cancelWord?: string;
        ended?: ArgumentPromptResponse;
        infinite?: boolean;
        limit?: number;
        modifyCancel?: PromptContentModifier;
        modifyEnded?: PromptContentModifier;
        modifyRetry?: PromptContentModifier;
        modifyStart?: PromptContentModifier;
        modifyTimeout?: PromptContentModifier;
        optional?: boolean;
        retries?: number;
        retry?: ArgumentPromptResponse;
        start?: ArgumentPromptResponse;
        stopWord?: string;
        time?: number;
        timeout?: ArgumentPromptResponse;
    }
    Index

    Properties

    breakout?: boolean

    Whenever an input matches the format of a command, this option controls whether or not to cancel this command and run that command. The command to be run may be the same command or some other command.

    true
    

    Text sent on cancellation of command.

    cancelWord?: string

    Word to use for cancelling the command.

    "cancel"
    

    Text sent on amount of tries reaching the max.

    infinite?: boolean

    Prompts forever until the stop word, cancel word, time limit, or retry limit. Note that the retry count resets back to one on each valid entry. The final evaluated argument will be an array of the inputs.

    false
    
    limit?: number

    Amount of inputs allowed for an infinite prompt before finishing.

    Infinity.
    
    modifyCancel?: PromptContentModifier

    Function to modify cancel messages.

    modifyEnded?: PromptContentModifier

    Function to modify out of tries messages.

    modifyRetry?: PromptContentModifier

    Function to modify retry prompts.

    modifyStart?: PromptContentModifier

    Function to modify start prompts.

    modifyTimeout?: PromptContentModifier

    Function to modify timeout messages.

    optional?: boolean

    Prompts only when argument is provided but was not of the right type.

    false
    
    retries?: number

    Amount of retries allowed.

    1
    

    Text sent on a retry (failure to cast type).

    Text sent on start of prompt.

    stopWord?: string

    Word to use for ending infinite prompts.

    "stop"
    
    time?: number

    Time to wait for input.

    30000
    

    Text sent on collector time out.