aiko-chan-ai / discord.js-selfbot-v13

An unofficial discord.js fork for creating selfbots
https://discordjs-self-v13.netlify.app
GNU General Public License v3.0
823 stars 170 forks source link

Accept Invite - DiscordAPIError: Unknown Message #561

Closed owoki closed 9 months ago

owoki commented 1 year ago

Which package has the bugs?

The core library

Issue description

I don't know much about node.js and discord.js. But I'm leaving the error log I got together with the code I've reached as a result of my research. I couldn't come to a conclusion myself and I opened this issuie because it said unknown error

BAŞARILI
D:\code\node.js\discord\test\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:423
      throw new DiscordAPIError(data, res.status, request);
            ^

DiscordAPIError: Unknown Message
    at RequestHandler.execute (D:\code\node.js\discord\test\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:423:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push (D:\code\node.js\discord\test\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:80:14)
    at async Invite.acceptInvite (D:\code\node.js\discord\test\node_modules\discord.js-selfbot-v13\src\structures\Invite.js:339:5)
    at async D:\code\node.js\discord\test\bot.js:14:5
    at async Client.<anonymous> (D:\code\node.js\discord\test\bot.js:13:3) {
  method: 'post',
  path: '/invites/ndR23EjVCT',
  code: 10008,
  httpStatus: 403,
  captcha: null,
  requestData: {
    json: {
      captcha_key: 'P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.hKdwYXNza2V5xQdvnA_okjkANuFLbgLB-38S8EfHUUYnQiPzlSd62YQWvMWIQC-MbLqUFkjW4kIj2FR9gjEh-4Cu2smvCrAkQZgZUEXTim9iMIhJHuZ0_SsJg3moR1ZV8Xw0rF4eVqdgtYOv1h0_eI8hFNyaXoKODZ2b_Njq9YfZQM2MemwAHLEp7m6MPYtImFsuPKJK_RubrfDYrDfdg3vOXPPGmastZ9cOOTTNJf3IXNtYzHZqfoTe3zbubSY5qYsvEDJ-lgm9JH6koHLdOwkrgb7feJF5TqXhY5x8MJjcOma-HonEamHZsRo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vQHmT0KqzabX4v8EAD9s5Z_wlVpRtEL0ptcIHlqJse1xrh1xDliJyuwX4GFJT_T3xXCl5aNleHDOY_6NOKhzaGFyZF9pZM4DMYNvonBkAA.ujdom8yTk6hoZCC69TtbuD32lQqb6CSb_iFidOHoxGU',
      captcha_rqtoken: 'IkV1L0pWbGg0NWl6MFBUQkVnT2JCcXBoK1NXR2dQdjRlSUpwL2ZRd0hjZHNtclNmQlh2OXJTZXhra3VycW1GNFJDZmtWbHc9PU5lMXU5dHJYRjV5MlBPN2Ui.Y_6MuQ.JRAdxZwRqWSo8Bq73cPbS6P-K58'
    },
    files: []
  },
  retries: 3
}

Code sample

await client.fetchInvite('https://discord.gg/xxx').then(async invite => {
    await invite.acceptInvite().then(console.log("BAŞARILI"));
  });

Package version

2.11.2

Node.js version

16.13.1

Operating system

Windows

Priority this issue should have

Medium (should be fixed soon)

Checklist

Additional Information

No response

aiko-chan-ai commented 1 year ago

duplicated #523, #551

try updating nodejs to v18 lts

owoki commented 1 year ago

I updated but still the same

D:\code\node.js\discord\test\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:423
      throw new DiscordAPIError(data, res.status, request);
            ^

DiscordAPIError: Unknown Message
    at RequestHandler.execute (D:\code\node.js\discord\test\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:423:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async RequestHandler.push (D:\code\node.js\discord\test\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:80:14)
    at async Invite.acceptInvite (D:\code\node.js\discord\test\node_modules\discord.js-selfbot-v13\src\structures\Invite.js:339:5)
    at async D:\code\node.js\discord\test\bot.js:14:5
    at async Client.<anonymous> (D:\code\node.js\discord\test\bot.js:13:3) {
  method: 'post',
  path: '/invites/ndR23EjVCT',
  code: 10008,
  httpStatus: 403,
  captcha: null,
  requestData: {
    json: {
      captcha_key: 'P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.hKdwYX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Z_JrDEoA6lSd_BPSvWmBjGmivGdEGlpDWdJPUSK7cIemNn_71F31QtkzsOBacGKPjIIGPPOlVUzFtGD8As1cx45Nrv4lPiluGrsKl73O_GPK2T7D3aJw1XW8XNMDTVfVQOGp9MsnJABfZ_heSmVu-DJtKN_jQd7v_5M4JbDB2eYesmJgL0mE61BsjmETpmjY3F_j-rR0bm04K8wbey2EPTa1mXDUNRChh-HRkKcDJJ7Oww7Vi1jN6ez9MaNacEAA6E9wtTLyHRsM5HGTPshjVlgu2WasYKC85J0riJStCuVwOTvP1-b65p0v1PR6sS3ax0on4KBkrUJyQAqOSbCv2Kp1yNVH2uQKEeQ1LqTWdy8GLMMp8P7h2tmuWwpJWHTw0_K-QncRnApRI95p5YybliXLpWKjZXhwzmP-6iKoc2hhcmRfaWTOAzGDb6JwZAA.iMEZl3UZkIqZmchtzVx4c7sqYeYinbnySTHUb1zkOXU',
      captcha_rqtoken: 'IjlKNThGWUR4MnNENVV1Mi8vYlRJam1ON3Z5azl2clVOODBETVNTYTRBYUNkK0cwS0l4azJJVXduRDhCK21YdEsrZndYNmc9PTNxalh5UnExN2pIMTQwTVYi.Y_7pog.DVOm32ZjqDA_qtluytwgkEVMZas'
    },
    files: []
  },
  retries: 1
}

Node.js v19.7.0
morgan-redbite commented 1 year ago

Tested on multiple node version:

batrachophagous1 commented 1 year ago

I upgraded to node 18.12.1 and Im getting unknown message.

batrachophagous1 commented 1 year ago

This seems to be a discord issue DMDGO is running into this too

morgan-redbite commented 1 year ago

It's kinda random, but looking at 2captcha server statistic going high recently pretty much 2/10 attempts success rate

batrachophagous1 commented 1 year ago

I'm using capmonster. But it's returning actual captcha responses

njho commented 1 year ago

Yeah this seems to be pretty major. Seems to be impossible to add new guilds even on v2.12.0.

Anyone have any thoughts on this?

morgan-redbite commented 1 year ago

Funny thing is, yesterday i have 0/5 attempts failure on joining guild. It was almost immediate on joining. I created 5 fully verified discord account (email + phone).

aiko-chan-ai commented 1 year ago

Yeah this seems to be pretty major. Seems to be impossible to add new guilds even on v2.12.0.

Anyone have any thoughts on this?

it's very random, I'm not sure the command will work

aiko-chan-ai commented 1 year ago

try the latest version

cuongn265 commented 1 year ago

I use nocaptchaai browser extension and it can solve the captcha on browser, but when using in client the issue still there

image
cuongn265 commented 1 year ago

much appreciate @aiko-chan-ai, especially when I know we have a same flag :P

N1C3B00T commented 1 year ago

I believe the issue is primarily related to the JA3 fingerprint, but I haven't completely resolved it yet

aiko-chan-ai commented 9 months ago

try v3.1.3 ;-;

aiko-chan-ai commented 9 months ago

1003