-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polls - fix multiple issues #240
Comments
Merged
polls command
/home/ewibot/ewibot/node_modules/discord.js/src/rest/RequestHandler.js:350
throw new DiscordAPIError(data, res.status, request);
^
DiscordAPIError: Invalid Form Body
components[0].components[0].options[2].label: Must be between 1 and 100 in length.
at RequestHandler.execute (/home/ewibot/ewibot/node_modules/discord.js/src/rest/RequestHandler.js:350:13)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (/home/ewibot/ewibot/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
at async InteractionWebhook.editMessage (/home/ewibot/ewibot/node_modules/discord.js/src/structures/Webhook.js:327:15)
at async ButtonInteraction.editReply (/home/ewibot/ewibot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:150:21)
at async interactionEditReply (file:///home/ewibot/ewibot/src/commands/polls/pollsUtils.js:63:5) {
method: 'patch',
path: '/webhooks/926909518963695737/aW50ZXJhY3Rpb246MTE1Nzk3ODc0MTA5MjQwMTE3MzpMOUhDTnNjcVVWUzFZMW1kMGpZaHI3SEdscklGV2tUaGpEZlY5MDN4cHlpNVNad2tQSGw5TGdZZWpabUMzRk9BTzRyR0RHd3ZZV2hsOFZBZmpjcjBSZnRLVzZlcGI3eEJrWnRkMFNsMjZDY3RwU0dSZmFPb09mMHZMRzB4SzN3Vw/messages/@original',
code: 50035,
httpStatus: 400,
requestData: {
json: {
content: undefined,
tts: false,
nonce: undefined,
embeds: undefined,
components: [ { components: [ [Object] ], type: 1 } ],
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: 64,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined,
thread_name: undefined
},
files: []
}
} |
will be fixed in another PR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: