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
825 stars 170 forks source link

Join Guild not working #1309

Open Person0z opened 1 month ago

Person0z commented 1 month ago

Which package has the bugs?

The core library

Issue description

node test.js Ready! ***** node:events:497 throw er; // Unhandled 'error' event ^

DiscordAPIError: Unknown Message at RequestHandler.execute (/root/node_modules/discord.js-selfbot-v13/src/rest/RequestHandler.js:415:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async RequestHandler.push (/root/node_modules/discord.js-selfbot-v13/src/rest/RequestHandler.js:63:14) at async Client.acceptInvite (/root/node_modules/discord.js-selfbot-v13/src/client/Client.js:574:18) at async Client. (/root/joiner/test.js:23:3) Emitted 'error' event on Client instance at: at emitUnhandledRejectionOrErr (node:events:402:10) at process.processTicksAndRejections (node:internal/process/task_queues:84:21) { method: 'post', path: '/invites/*', code: 10008, httpStatus: 403, requestData: { json: { session_id: '***' }, files: [], headers: undefined }, retries: 1, captcha: null }

Node.js v20.15.1

Code sample

'use strict';

const Captcha = require('2captcha');
const Discord = require('discord.js-selfbot-v13');

const solver = new Captcha.Solver('*****');

const client = new Discord.Client({
  captchaSolver: function (captcha, UA) {
    return solver
      .hcaptcha(captcha.captcha_sitekey, 'discord.com', {
        invisible: 1,
        userAgent: UA,
        data: captcha.captcha_rqdata,
      })
      .then(res => res.data);
  },
  captchaRetryLimit: 3,
});

client.on('ready', async () => {
  console.log('Ready!', client.user.tag);
  await client.acceptInvite('******');
});

client.login('*****');

Package version

discord.js-selfbot-v13@3.4.0

Node.js version

v20.15.1

Operating system

Linux

Priority this issue should have

High (immediate attention needed)

Checklist

Additional Information

No response

00nx commented 1 month ago

code: 10008,
httpStatus: 403

happens because of the browser replication failure, try adding more headers or clone the request headers from the browser.

JakubLudvik commented 1 month ago

I have problems with this too, I have tried everything, all headers directly from the browser, randomly generated user-agents, x-super-properties, several different proxies, no proxies and different tokens and many more

00nx commented 1 month ago

I have problems with this too, I have tried everything, all headers directly from the browser, randomly generated user-agents, x-super-properties, several different proxies, no proxies and different tokens and many more

maybe it's the cloudflare issue, happens to the most and discord uses cloudflare so it's pretty self explanatory

JakubLudvik commented 1 month ago

I found this in response{"captcha_key":["You need to update your app to join this server."]