Skip to content
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

Fix Polls - wrong button label size #255

Open
Eccleria opened this issue Oct 1, 2023 · 0 comments
Open

Fix Polls - wrong button label size #255

Eccleria opened this issue Oct 1, 2023 · 0 comments
Assignees
Labels
bug Fatal issue

Comments

@Eccleria
Copy link
Owner

Eccleria commented Oct 1, 2023

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: []
  }
}

Originally posted by @Eccleria in #240 (comment)

@Eccleria Eccleria self-assigned this Oct 1, 2023
@Eccleria Eccleria added the bug Fatal issue label Oct 1, 2023
@Eccleria Eccleria added this to the 6.0.0 milestone Oct 1, 2023
@Eccleria Eccleria removed this from the 6.0.0 milestone Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fatal issue
Projects
None yet
Development

No branches or pull requests

1 participant