mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(emojiPredicate): wrong min name length (#11371)
This commit is contained in:
@@ -5,7 +5,7 @@ import { idPredicate, customIdPredicate, snowflakePredicate } from '../Assertion
|
||||
export const emojiPredicate = z
|
||||
.strictObject({
|
||||
id: snowflakePredicate.optional(),
|
||||
name: z.string().min(2).max(32).optional(),
|
||||
name: z.string().min(1).max(32).optional(),
|
||||
animated: z.boolean().optional(),
|
||||
})
|
||||
.refine((data) => data.id !== undefined || data.name !== undefined, {
|
||||
|
||||
Reference in New Issue
Block a user