fix: captcha solver

This commit is contained in:
Elysia 2023-04-07 22:17:23 +07:00
parent 03fe959be5
commit 288be9b0a1
4 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "discord.js-selfbot-v13",
"version": "2.13.1",
"version": "2.13.2",
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
"main": "./src/index.js",
"types": "./typings/index.d.ts",

View File

@ -106,7 +106,7 @@ class APIRequest {
if (captchaKey && typeof captchaKey == 'string') {
if (!this.options.data) this.options.data = {};
// Delete cookie (https://t.me/DMDGOBugsAndFeatures/626) Wtf Unknown Message Error ???
// headers.Cookie = undefined;
headers.Cookie = undefined;
this.options.data.captcha_key = captchaKey;
if (captchaRqtoken) this.options.data.captcha_rqtoken = captchaRqtoken;
}

View File

@ -398,7 +398,7 @@ class RequestHandler {
data,
this.manager.client.options.http.headers['User-Agent'],
);
await this.manager.client.sleep(5_000);
// Sleep: await this.manager.client.sleep(5_000);
this.manager.client.emit(
DEBUG,
`Captcha details: