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
User->Create worked in testing, but the creation prompt button can't be sent if the action and/or categoryId push the custom ID over the 100-character limit.
16/10/23 23:53:51 [ERROR] (MENUS) "create" menu execution error: ExpectedConstraintError > s.string.lengthLessThanOrEqual
Invalid string length
Expected: expected.length <= 100
Received:
| '{"action":"questions","categoryId":1686,"referencesMessage":"1126972889170718753/1163549810507386973"}'
at Object.run (/home/container/node_modules/.pnpm/@[email protected]/node_modules/@sapphire/shapeshift/dist/index.js:1546:79)
at /home/container/node_modules/.pnpm/@[email protected]/node_modules/@sapphire/shapeshift/dist/index.js:212:66
at Array.reduce (<anonymous>)
at StringValidator.parse (/home/container/node_modules/.pnpm/@[email protected]/node_modules/@sapphire/shapeshift/dist/index.js:212:29)
at ModalBuilder.setCustomId (/home/container/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/builders/dist/index.js:1342:45)
at TicketManager.create (/home/container/src/lib/tickets/manager.js:276:7)
at async CreateMenu.run (/home/container/src/menus/create.js:18:3)
Expected Behavior
No response
Steps To Reproduce
No response
Environment
- OS:
- Node:
- NPM:
- Bot: 4.0.10
Anything else?
The channel ID in referencesMessage probably isn't necessary as the button should always be in the same channel as the message.
The text was updated successfully, but these errors were encountered:
eartharoid
changed the title
[BUG] User->Create context menu command fails because the button's custom ID is too long
[BUG] Message->Create context menu command fails because the button's custom ID is too long
Nov 8, 2024
Is there an existing issue for this?
Current Behavior
User->Create worked in testing, but the creation prompt button can't be sent if the
action
and/orcategoryId
push the custom ID over the 100-character limit.Expected Behavior
No response
Steps To Reproduce
No response
Environment
Anything else?
The channel ID in
referencesMessage
probably isn't necessary as the button should always be in the same channel as the message.The text was updated successfully, but these errors were encountered: