fix: select menu placholder max length 150. Closes #2085

This commit is contained in:
Skillz4Killz
2022-03-21 11:08:15 +00:00
committed by GitHub
parent ff421688f1
commit b22e7f954f
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -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.",
);
}