You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: DiscordAPIError[50035]: Invalid Form Body
components[0].components[0].options[BASE_TYPE_BAD_LENGTH]: Must be between 1 and 25 in length.
at async Object.execute (/home/mirasaki/projects/node/discord/evobot/commands/search.ts:58:22)
Expected behavior
Format/slice the name to comply with API rules/restrictions
Environment (add if possible)
Node.js version: v19.0.1
Additional information & screenshots
Add any other context or screenshots about the problem here.
The text was updated successfully, but these errors were encountered:
Oh it's actually because there's over 25 results in the StringSelectMenuBuilder, where 25 is max
Do you mind if I start a PR myself? Interested in doing some of the other issues as well
Mirasaki
changed the title
🐛 DiscordAPIError - Search command error for long string
🐛 DiscordAPIError - Search command error if no results
Jun 13, 2023
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug
When using a /search query and getting results with names over 25 characters, an API error is thrown for the Select Menu
How To Reproduce
Steps to reproduce the behavior:
https://www.youtube.com/watch?v=5NvUjGrwl_g&list=PLjtf1x3BacZauF2uL-v-grcEk4JmVWvMx&index=39
components[0].components[0].options[BASE_TYPE_BAD_LENGTH]: Must be between 1 and 25 in length.
at async Object.execute (/home/mirasaki/projects/node/discord/evobot/commands/search.ts:58:22)
Expected behavior
Format/slice the name to comply with API rules/restrictions
Environment (add if possible)
Additional information & screenshots
Add any other context or screenshots about the problem here.
The text was updated successfully, but these errors were encountered: