#yes `components 0 components 0 emoji

1 messages · Page 1 of 1 (latest)

stuck escarp
#

any idea ?

pine copper
#

Show the full error

stuck escarp
#
DiscordAPIError[50035]: Invalid Form Body
components[0].components[0].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[2].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
    at SequentialHandler.runRequest (C:\Users\jrehm\Documents\GitHub\ArkStaticsBot\node_modules\@discordjs\rest\dist\lib\handlers\SequentialHandler.cjs:287:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async SequentialHandler.queueRequest (C:\Users\jrehm\Documents\GitHub\ArkStaticsBot\node_modules\@discordjs\rest\dist\lib\handlers\SequentialHandler.cjs:99:14)
    at async REST.request (C:\Users\jrehm\Documents\GitHub\ArkStaticsBot\node_modules\@discordjs\rest\dist\lib\REST.cjs:52:22)
    at async InteractionWebhook.editMessage (C:\Users\jrehm\Documents\GitHub\ArkStaticsBot\node_modules\discord.js\src\structures\Webhook.js:325:15)
    at async ChatInputCommandInteraction.editReply (C:\Users\jrehm\Documents\GitHub\ArkStaticsBot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:150:21) {
  rawError: {
    code: 50035,
    errors: { components: [Object] },
    message: 'Invalid Form Body'
  },
  code: 50035,
  status: 400,
  method: 'PATCH',
  url: 'https://discord.com/api/v10/webhooks/911613708797632602/aW50ZXJhY3Rpb246MTAwMjY1OTQ3MDgzMDIwNzAwNjpwdHdOaFFvZW1VTG8zNEdROFlOTjVSUUNWRjFKS1k0VDZlYnd4ZkZOeDNRcGxETFNLYUh3cnN2VWIzbnp5SHJ6SmpVUGhJakJEZkxWWnRTN0lyNjRta2FGWVhJYWlZOUxoWkxJYWFlRDVzeUdEeVNMRXVRNkVMQ3ZNQWNwMm5xSQ/messages/@original',
  requestBody: {
    files: [],
    json: {
      content: undefined,
      tts: false,
      nonce: undefined,
      embeds: [Array],
      components: [Array],
      username: undefined,
      avatar_url: undefined,
      allowed_mentions: undefined,
      flags: undefined,
      message_reference: undefined,
      attachments: undefined,
      sticker_ids: undefined
    }
  }
}```
#

@pine copper any idea ?

pine copper
#

Pass the emoji as plain string, not as object with name property. Djs should do the magic itself…