Closed jikesgonzalez closed 10 months ago
node test
Logging on with a user token is unfortunately against the Discord
`Terms of Service` <https://support.discord.com/hc/en-us/articles/115002192352>
and doing so might potentially get your account banned.
Use this at your own risk.
Provided token: <token>
Preparing to connect to the gateway...
[WS => Manager] Fetched Gateway Information
URL: wss://gateway.discord.gg
Recommended Shards: 1
[WS => Manager] Session Limit Information
Total: Infinity
Remaining: Infinity
[WS => Manager] Spawning shards: 0
[WS => Shard 0] [CONNECT]
Gateway : wss://gateway.discord.gg/
Version : 9
Encoding : json
Compression: none
Agent : false
[WS => Shard 0] Setting a HELLO timeout for 20s.
[WS => Shard 0] [CONNECTED] Took 456ms
[WS => Shard 0] Clearing the HELLO timeout.
[WS => Shard 0] Setting a heartbeat interval for 41250ms.
[WS => Shard 0] [IDENTIFY] Shard 0/1 with intents: undefined
[WS => Shard 0] [READY] Session <id> | Resume url wss://gateway-us-east1-c.discord.gg.
[WS => Shard 0] [ReadyHeartbeat] Sending a heartbeat.
[USER_REQUIRED_ACTION] All required actions have been completed.
[READY] Received 1 guilds, 0 large guilds
[WS => Shard 0] Shard received all its guilds. Marking as fully ready.
Ready! <username>#0
[WS => Shard 0] Heartbeat acknowledged, latency of 244ms.
Hit a captcha while executing a request (You need to update your app to join this server.)
Method : post
Path : /invites/mdmc
Route : /invites/mdmc
Sitekey : b2b02ab5-7dae-4d6f-830e-7b55634c888b
rqToken : IlFHTVhrZThvRGdvczJXdUpaS1JlSDkzbFBpNHkvY1ozcE5pcGdrWERtL1haTVJQcDU5a1ZqMEFrV1J4SXplQVU5UWFBNGc9PTBkYVBnUTFQY3VESlM1NHci.ZaUOmw.QcDllFvHkwrWnBAYceORBXes46E
Captcha details:
Method : post
Path : /invites/mdmc
Route : /invites/mdmc
Key : P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.hKdwYXNza2V5xQY9U2P1wLZ8k4uCzJOctP5LXbEY-NDy-72D7nKTO_Z9WuRLd2rqWMxtAPTAw6QSnxh2...
rqToken : IlFHTVhrZThvRGdvczJXdUpaS1JlSDkzbFBpNHkvY1ozcE5pcGdrWERtL1haTVJQcDU5a1ZqMEFrV1J4SXplQVU5UWFBNGc9PTBkYVBnUTFQY3VESlM1NHci.ZaUOmw.QcDllFvHkwrWnBAYceORBXes46E
const Discord = require('discord.js-selfbot-v13');
const Captcha = require('2captcha');
const solver = new Captcha.Solver('<api>');
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);
},
});
client.on('debug', console.log);
client.on('ready', async (client) => {
console.log('Ready!', client.user.tag);
client.acceptInvite('mdmc');
});
client.login('token');
@aiko-chan-ai look
Which package has the bugs?
The core library
Issue description
The captcha is not working correctly. I am getting the refresh my client message every time I complete a captcha, and even before completing it. This happens to me when trying to accept an invitation, with:
await client.acceptInvite(invite)
Code sample
Package version
3.0.2
Node.js version
v20.10.0
Operating system
No response
Priority this issue should have
High (immediate attention needed)
Checklist
Additional Information
Logs: