Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/discordeno_patched/plugins/helpers/deps.ts>validateLength

Discord API library for Node and Deno
Latest
function validateLength
Re-export
import { validateLength } from "https://deno.land/x/discordeno_patched@18.0.3/plugins/helpers/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; }