mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
fix(SelectMenu): set placeholder max to 150 (#7538)
This commit is contained in:
@@ -4,8 +4,7 @@ import { SelectMenuComponent, SelectMenuOption } from '../../src/index';
|
||||
const selectMenu = () => new SelectMenuComponent();
|
||||
const selectMenuOption = () => new SelectMenuOption();
|
||||
|
||||
const longStr =
|
||||
'looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong';
|
||||
const longStr = 'a'.repeat(256);
|
||||
|
||||
const selectMenuOptionData: APISelectMenuOption = {
|
||||
label: 'test',
|
||||
|
||||
@@ -19,7 +19,7 @@ export const buttonLabelValidator = z.string().nonempty().max(80);
|
||||
|
||||
export const buttonStyleValidator = z.number().int().min(ButtonStyle.Primary).max(ButtonStyle.Link);
|
||||
|
||||
export const placeholderValidator = z.string().max(100);
|
||||
export const placeholderValidator = z.string().max(150);
|
||||
export const minMaxValidator = z.number().int().min(0).max(25);
|
||||
|
||||
export const optionsValidator = z.object({}).array().nonempty();
|
||||
|
||||
Reference in New Issue
Block a user