mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix: select menu placholder max length 150. Closes #2085
This commit is contained in:
@@ -52,10 +52,10 @@ export function validateComponents(bot: Bot, components: MessageComponents) {
|
||||
if (subcomponent.type === MessageComponentTypes.SelectMenu) {
|
||||
if (
|
||||
subcomponent.placeholder &&
|
||||
!bot.utils.validateLength(subcomponent.placeholder, { max: 100 })
|
||||
!bot.utils.validateLength(subcomponent.placeholder, { max: 150 })
|
||||
) {
|
||||
throw new Error(
|
||||
"The component placeholder can not be longer than 100 characters.",
|
||||
"The component placeholder can not be longer than 150 characters.",
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user