mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +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 selectMenu = () => new SelectMenuComponent();
|
||||||
const selectMenuOption = () => new SelectMenuOption();
|
const selectMenuOption = () => new SelectMenuOption();
|
||||||
|
|
||||||
const longStr =
|
const longStr = 'a'.repeat(256);
|
||||||
'looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong';
|
|
||||||
|
|
||||||
const selectMenuOptionData: APISelectMenuOption = {
|
const selectMenuOptionData: APISelectMenuOption = {
|
||||||
label: 'test',
|
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 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 minMaxValidator = z.number().int().min(0).max(25);
|
||||||
|
|
||||||
export const optionsValidator = z.object({}).array().nonempty();
|
export const optionsValidator = z.object({}).array().nonempty();
|
||||||
|
|||||||
Reference in New Issue
Block a user