Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oasis/packages/deps.ts>validateLength

An object oriented Discordeno framework
Latest
function validateLength
Re-export
import { validateLength } from "https://deno.land/x/oasis@2.1.0/packages/deps.ts";

Validates the length of a string in JS. Certain characters in JS can have multiple numbers in length in unicode and discords api is in python which treats length differently.

Parameters

text: string
options: { max?: number; min?: number; }