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

LogsRemover - bad bulkDelete message length #296

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

LogsRemover - bad bulkDelete message length #296

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

Comments

@Eccleria
Copy link
Owner

logsRemover
/home/ewibot/ewibot/node_modules/@discordjs/rest/dist/index.js:640
      throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
            ^

DiscordAPIError[50035]: Invalid Form Body
messages[BASE_TYPE_BAD_LENGTH]: Must be between 2 and 100 in length.
    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 ThreadChannel.bulkDelete (/home/ewibot/ewibot/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:299:7)
    at async logsRemover (file:///home/ewibot/ewibot/src/admin/utils.js:541:20) {
  requestBody: {
    files: undefined,
    json: {
      messages: [
        '1193055452951486565', '1193107914395762698', '1193113979808137240',
        '1193118918517194772', '1193155753343729684', '1193156603864686683',
        '1193156667743936604', '1193160670754119700', '1193161789488238684',
        '1193171336281985064', '1193184940079206511', '1193184945393381409',
        '1193193022926626817', '1193194842315051039', '1193195222922956831',
        '1193213186162303186', '1193213856907001886', '1193214160364916826',
        '1193214174495527013', '1193214193474744400', '1193214209488601119',
        '1193214220662227106', '1193214317932335175', '1193216074993369150',
        '1193216232602746922', '1193216730168823909', '1193217130590634065',
        '1193217612537139221', '1193217726093733928', '1193218702087295096',
        '1193221332771545139', '1193221992028065802', '1193222453929971773',
        '1193223147701424168', '1193224093143674941', '1193224257396805714',
        '1193224387575431360', '1193224668971278546', '1193225357361426463',
        '1193225925639286874', '1193226566445056060', '1193227054863368374',
        '1193227785645330534', '1193228347099058177', '1193236579532152954',
        '1193240042521509982', '1193256687835021363', '1193263539893317713',
        '1193266088503419031', '1193272168470036491', '1193279681106018385',
        '1193285511431868456', '1193285610258042964', '1193285702960566555',
        '1193288293392060447', '1193292746774028429', '1193294174074720367',
        '1193309153163231384', '1193325202306764881', '1193325239564783807',
        '1193330350747816017', '1193330366971400322', '1193330368095457310',
        '1193330386177105960', '1193331393015591064', '1193341159347585085',
        '1193341163835490444', '1193341625791938601', '1193341626635006114',
        '1193345190694498405', '1193348768800710787', '1193348779059990568',
        '1193348857204064387', '1193348861373198378', '1193348879047987311',
        '1193348883477172294', '1193348892926947468', '1193348896248827976',
        '1193348906336141453', '1193348909414752318', '1193348932386951298',
        '1193348935113248778', '1193348950531526756', '1193348953027129425',
        '1193348964934750268', '1193348975789604864', '1193348978847256597',
        '1193348987764355085', '1193348991451136060', '1193348998040395886',
        '1193349004889686100', '1193349011982266368', '1193349014888910920',
        '1193349023357206588', '1193349026611994714', '1193349038142136430',
        '1193349039475921007', '1193349042973978674', '1193349052000116896',
        '1193349057746321492',
        ... 14 more items
      ]
    }
  },
  rawError: {
    message: 'Invalid Form Body',
    code: 50035,
    errors: {
      messages: {
        _errors: [
          {
            code: 'BASE_TYPE_BAD_LENGTH',
            message: 'Must be between 2 and 100 in length.'
          }
        ]
      }
    }
  },
  code: 50035,
  status: 400,
  method: 'POST',
  url: 'https://discord.com/api/v10/channels/1012365101594058762/messages/bulk-delete'
}
@Eccleria Eccleria self-assigned this Jan 13, 2024
@Eccleria Eccleria added the bug Fatal issue label Jan 13, 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