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

    Type Alias ArgumentTypeCaster<R>

    ArgumentTypeCaster: (
        this: Argument,
        message: TextCommandMessage,
        phrase: string,
    ) => R

    A function for processing user input to use as an argument. A void return value will use the default value for the argument or start a prompt. Any other truthy return value will be used as the evaluated argument. If returning a Promise, the resolved value will go through the above steps.

    Type Parameters

    • R = unknown

    Type declaration