fix: Add idPredicate (#11109)

* fix: `idPredicate`

* fix: add test

* test: add negative test
This commit is contained in:
Jiralite
2025-09-26 17:06:22 +01:00
committed by GitHub
parent b3705df547
commit 0d76f1149f
7 changed files with 29 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
import { Locale } from 'discord-api-types/v10';
import { z } from 'zod';
export const idPredicate = z.int().min(0).max(2_147_483_647).optional();
export const customIdPredicate = z.string().min(1).max(100);
export const memberPermissionsPredicate = z.coerce.bigint();