Type Alias ParsedValuePredicate

ParsedValuePredicate: (
    message: TextCommandMessage,
    phrase: string,
    value: any,
) => boolean

A function for validating parsed arguments.

Type declaration

    • (message: TextCommandMessage, phrase: string, value: any): boolean
    • Parameters

      • message: TextCommandMessage

        Message that triggered the command.

      • phrase: string

        The user input.

      • value: any

        The parsed value.

      Returns boolean