mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-20 05:23:31 +01:00
fix: Add idPredicate (#11109)
* fix: `idPredicate` * fix: add test * test: add negative test
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user