ExpectedConstraintError: Invalid number value

Even I can't figure out what he doesn't like
4 Replies
d.js toolkit
d.js toolkit16mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Dmitry Batkovich
Dmitry BatkovichOP16mo ago
ExpectedConstraintError: Invalid number value
at Object.run (D:\KJPiTechnologes\discordbots\events\node_modules\@sapphire\shapeshift\dist\index.js:773:72)
at D:\KJPiTechnologes\discordbots\events\node_modules\@sapphire\shapeshift\dist\index.js:212:66
at Array.reduce (<anonymous>)
at NumberValidator.parse (D:\KJPiTechnologes\discordbots\events\node_modules\@sapphire\shapeshift\dist\index.js:212:29)
at validateFieldLength (D:\KJPiTechnologes\discordbots\events\node_modules\@discordjs\builders\dist\index.js:145:24)
at EmbedBuilder.addFields (D:\KJPiTechnologes\discordbots\events\node_modules\@discordjs\builders\dist\index.js:224:5)
at ChildProcess.<anonymous> (D:\KJPiTechnologes\discordbots\events\src\index.js:458:8)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
constraint: 's.number.lessThanOrEqual',
given: 100,
expected: 'expected <= 25'
ExpectedConstraintError: Invalid number value
at Object.run (D:\KJPiTechnologes\discordbots\events\node_modules\@sapphire\shapeshift\dist\index.js:773:72)
at D:\KJPiTechnologes\discordbots\events\node_modules\@sapphire\shapeshift\dist\index.js:212:66
at Array.reduce (<anonymous>)
at NumberValidator.parse (D:\KJPiTechnologes\discordbots\events\node_modules\@sapphire\shapeshift\dist\index.js:212:29)
at validateFieldLength (D:\KJPiTechnologes\discordbots\events\node_modules\@discordjs\builders\dist\index.js:145:24)
at EmbedBuilder.addFields (D:\KJPiTechnologes\discordbots\events\node_modules\@discordjs\builders\dist\index.js:224:5)
at ChildProcess.<anonymous> (D:\KJPiTechnologes\discordbots\events\src\index.js:458:8)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
constraint: 's.number.lessThanOrEqual',
given: 100,
expected: 'expected <= 25'
fields I have an array
const fields = [];
const fields = [];
treble/luna
treble/luna16mo ago
an embed can only have 25 fields You add 100
Dmitry Batkovich
Dmitry BatkovichOP16mo ago
ok thanks
Want results from more Discord servers?
Add your server