chore: bump shapeshift for faster object validation (#7914)

This commit is contained in:
Parbez
2022-05-12 15:39:50 +05:30
committed by GitHub
parent c1b5e731da
commit 4515a1ea80
10 changed files with 40 additions and 40 deletions

View File

@@ -3,8 +3,8 @@ import { ApplicationCommandType } from 'discord-api-types/v10';
import type { ContextMenuCommandType } from './ContextMenuCommandBuilder';
const namePredicate = s.string
.lengthGe(1)
.lengthLe(32)
.lengthGreaterThanOrEqual(1)
.lengthLessThanOrEqual(32)
.regex(/^( *[\p{L}\p{N}\p{sc=Devanagari}\p{sc=Thai}_-]+ *)+$/u);
const typePredicate = s.union(s.literal(ApplicationCommandType.User), s.literal(ApplicationCommandType.Message));