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

Join Guild not working #1309

Closed
3 tasks done
Person0z opened this issue Oct 6, 2024 · 6 comments
Closed
3 tasks done

Join Guild not working #1309

Person0z opened this issue Oct 6, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@Person0z
Copy link

Person0z commented Oct 6, 2024

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

[email protected]

Node.js version

v20.15.1

Operating system

Linux

Priority this issue should have

High (immediate attention needed)

Checklist

  • I have searched the open issues for duplicates.
  • I have shared the entire traceback.
  • I am using a user token (and it isn't visible in the code).

Additional Information

No response

@Person0z Person0z added the bug Something isn't working label Oct 6, 2024
@00nx
Copy link

00nx commented Oct 7, 2024

code: 10008,
httpStatus: 403

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

@The-Jakub
Copy link

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
Copy link

00nx commented Oct 8, 2024

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

@The-Jakub
Copy link

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

@aiko-chan-ai
Copy link
Owner

aiko-chan-ai commented Dec 13, 2024

fixed
Make sure that your IP address is not flagged, and that you have a sufficiently good captcha solver.

@OniMock
Copy link

OniMock commented Jan 17, 2025

Same error here with
package version:
[email protected]

tha last version

Did anyone solve it?

@aiko-chan-ai aiko-chan-ai closed this as not planned Won't fix, can't repro, duplicate, stale Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants