Eccleria / ewibot

Discord bot for La Quête d'Ewilan server.
3 stars 0 forks source link

Save-Logs - description field is required #305

Open Eccleria opened 10 months ago

Eccleria commented 10 months ago
embeds[1].description[BASE_TYPE_REQUIRED]: This field is required
    at handleErrors (/home/ewibot/ewibot/node_modules/@discordjs/rest/dist/index.js:640:13)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async SequentialHandler.runRequest (/home/ewibot/ewibot/node_modules/@discordjs/rest/dist/index.js:1021:23)
    at async SequentialHandler.queueRequest (/home/ewibot/ewibot/node_modules/@discordjs/rest/dist/index.js:862:14)
    at async REST.request (/home/ewibot/ewibot/node_modules/@discordjs/rest/dist/index.js:1387:22)
    at async TextChannel.send (/home/ewibot/ewibot/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:162:15)
    at async Object.action (file:///home/ewibot/ewibot/src/commands/save-log.js:70:3) {
  requestBody: {
    files: [],
    json: {
      content: undefined,
      tts: false,
      nonce: undefined,
      embeds: [
        {
          type: 'rich',
          title: 'Message supprimé',
          timestamp: '2024-01-28T22:22:59.660Z',
          fields: [
            [Object],
            [Object],
            [Object],
            [Object],
            [Object],
            [Object]
          ],
          content_scan_version: 0,
          color: 10038562
        },
        {
          url: 'https://cdn.discordapp.com/attachments/1129803742758313984/1201282347740434583/SPOILER_Snaptik.app_7329207257021943072.mov?ex=65c9405e&is=65b6cb5e&hm=e521601d545fc92f54bd9bea63f22d0829d896c73c50d4212f1643acdedaeb7d&',
          type: 'rich',
          content_scan_version: 0
        }
      ],
      components: undefined,
      username: undefined,
      avatar_url: undefined,
      allowed_mentions: undefined,
      flags: undefined,
      message_reference: undefined,
      attachments: undefined,
      sticker_ids: undefined,
      thread_name: undefined
    }
  },
  rawError: {
    message: 'Invalid Form Body',
    code: 50035,
    errors: {
      embeds: { '1': { description: { _errors: [Array] } } }
    }
  },
  code: 50035,
  status: 400,
  method: 'POST',
  url: 'https://discord.com/api/v10/channels/959168176908804106/messages'
}