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

Save-Logs - description field is required #305

Open
Eccleria opened this issue Jan 28, 2024 · 0 comments
Open

Save-Logs - description field is required #305

Eccleria opened this issue Jan 28, 2024 · 0 comments
Assignees
Labels
bug Fatal issue

Comments

@Eccleria
Copy link
Owner

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'
}
@Eccleria Eccleria added the bug Fatal issue label Jan 28, 2024
@Eccleria Eccleria self-assigned this Jan 28, 2024
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