Lorsque je demande mes notes j'ai cette erreur : ExpectedConstraintError > s.number.lessThanOrEqual
Invalid number value
Expected: expected <= 25
Received:
| 31
at Object.run (C:\Users\hazar\Desktop\pronote-bot-discord\node_modules\@sapphire\shapeshift\dist\index.js:773:72)
at C:\Users\hazar\Desktop\pronote-bot-discord\node_modules\@sapphire\shapeshift\dist\index.js:212:66
at Array.reduce (<anonymous>)
at NumberValidator.parse (C:\Users\hazar\Desktop\pronote-bot-discord\node_modules\@sapphire\shapeshift\dist\index.js:212:29)
at validateFieldLength (C:\Users\hazar\Desktop\pronote-bot-discord\node_modules\@discordjs\builders\dist\index.js:145:24)
at EmbedBuilder.addFields (C:\Users\hazar\Desktop\pronote-bot-discord\node_modules\@discordjs\builders\dist\index.js:221:5)
at Object.execute (C:\Users\hazar\Desktop\pronote-bot-discord\commands\notes.js:102:18)
at module.exports (C:\Users\hazar\Desktop\pronote-bot-discord\events\command.js:21:65)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Client.<anonymous> (C:\Users\hazar\Desktop\pronote-bot-discord\index.js:78:13)
(node:20880) DeprecationWarning: The SelectMenuBuilder class is deprecated. Use StringSelectMenuBuilder instead.
(Use node --trace-deprecation ... to show where the warning was created)
DeprecationWarning: The SelectMenuBuilder class is deprecated. Use StringSelectMenuBuilder instead.
at new SelectMenuBuilder (C:\Users\hazar\Desktop\pronote-bot-discord\node_modules\discord.js\src\structures\SelectMenuBuilder.js:17:15)
at Object.execute (C:\Users\hazar\Desktop\pronote-bot-discord\commands\notes.js:88:28)
at module.exports (C:\Users\hazar\Desktop\pronote-bot-discord\events\command.js:21:65)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Client. (C:\Users\hazar\Desktop\pronote-bot-discord\index.js:78:13)
Lorsque je demande mes notes j'ai cette erreur : ExpectedConstraintError > s.number.lessThanOrEqual Invalid number value
Expected: expected <= 25
Received: | 31
(node:20880) DeprecationWarning: The SelectMenuBuilder class is deprecated. Use StringSelectMenuBuilder instead. (Use (C:\Users\hazar\Desktop\pronote-bot-discord\index.js:78:13)
node --trace-deprecation ...
to show where the warning was created) DeprecationWarning: The SelectMenuBuilder class is deprecated. Use StringSelectMenuBuilder instead. at new SelectMenuBuilder (C:\Users\hazar\Desktop\pronote-bot-discord\node_modules\discord.js\src\structures\SelectMenuBuilder.js:17:15) at Object.execute (C:\Users\hazar\Desktop\pronote-bot-discord\commands\notes.js:88:28) at module.exports (C:\Users\hazar\Desktop\pronote-bot-discord\events\command.js:21:65) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Client.