Holygent
DIAdiscord.js - Imagine an app
•Created by Holygent on 3/2/2025 in #djs-questions
ValidationError: Expected the value to be a string or number
Greetings, I recently got a
ValidationError
saying Expected the value to be a string or number
. Below is my code.
const type = new TextInputBuilder()
.setCustomId('SELL_EC_1_TYPE')
.setLabel('Type of creation—only one')
.setStyle(TextInputStyle.Short)
.setPlaceholder('Build, model, GFX, SFX, script...')
.setRequired(false)
const row0 = new ActionRowBuilder()
.addComponents(type)
const linkToProduct = new TextInputBuilder()
.setCustomId('SELL_EC_1_LINK')
.setLabel('Link to the product')
.setStyle(TextInputStyle.Paragraph)
.setPlaceholder('https://create.roblox.com/... or https://cdn.discordapp.com/attachments/...')
.setRequired(false)
const row1 = new ActionRowBuilder()
.addComponents(linkToProduct)
const price = new TextInputBuilder()
.setCustomId('SELL_EC_1_PRICE')
.setLabel('Price to sell')
.setStyle(TextInputStyle.Short)
.setPlaceholder("Robux only. You'll lose 15%.")
.setRequired(false)
const row2 = new ActionRowBuilder()
.addComponents(price)
const profile = new TextInputBuilder()
.setCustomId('SELL_EC_1_PROFILE')
.setLabel('Your Rolox profile')
.setPlaceholder('Link, username, or ID only')
const type = new TextInputBuilder()
.setCustomId('SELL_EC_1_TYPE')
.setLabel('Type of creation—only one')
.setStyle(TextInputStyle.Short)
.setPlaceholder('Build, model, GFX, SFX, script...')
.setRequired(false)
const row0 = new ActionRowBuilder()
.addComponents(type)
const linkToProduct = new TextInputBuilder()
.setCustomId('SELL_EC_1_LINK')
.setLabel('Link to the product')
.setStyle(TextInputStyle.Paragraph)
.setPlaceholder('https://create.roblox.com/... or https://cdn.discordapp.com/attachments/...')
.setRequired(false)
const row1 = new ActionRowBuilder()
.addComponents(linkToProduct)
const price = new TextInputBuilder()
.setCustomId('SELL_EC_1_PRICE')
.setLabel('Price to sell')
.setStyle(TextInputStyle.Short)
.setPlaceholder("Robux only. You'll lose 15%.")
.setRequired(false)
const row2 = new ActionRowBuilder()
.addComponents(price)
const profile = new TextInputBuilder()
.setCustomId('SELL_EC_1_PROFILE')
.setLabel('Your Rolox profile')
.setPlaceholder('Link, username, or ID only')
7 replies