Type Alias PromptWithMinMax

PromptWithMinMax: PromptBase & (
    | {
        choices?: never;
        maxLength?: number;
        minLength?: number;
        type: "string";
    }
    | { choices?: never; maxValue?: number; minValue?: number; type: "number" }
)

Provides min/max validation for string and number prompts.

  • If choices are used, minLength and maxLength are resolved dynamically.
  • If type is channel or role, snowflake validation is automatically applied.