Type Alias ArgumentPromptData

ArgumentPromptData: {
    failure: null | Flag<Fail>;
    infinite: boolean;
    message: TextCommandMessage;
    phrase: string;
    retries: number;
}

Data passed to argument prompt functions.

Type declaration

  • failure: null | Flag<Fail>

    The value that failed if there was one, otherwise null.

  • infinite: boolean

    Whether the prompt is infinite or not.

  • message: TextCommandMessage

    The message that caused the prompt.

  • phrase: string

    The input phrase that caused the prompt if there was one, otherwise an empty string.

  • retries: number

    Amount of retries so far.