Update CaptchaSolver.js

This commit is contained in:
Elysia 2023-08-15 18:44:56 +07:00
parent fb79c17872
commit 3e09cea4aa

View File

@ -92,7 +92,7 @@ module.exports = class CaptchaSolver {
this.solver
.hcaptcha(siteKey, 'discord.com', postD)
.then(res => {
let result = findStringWithRegex(res, /^P\d_\w+/)[0];
let result = findStringWithRegex(res.data, /^P\d_\w+/)[0];
if (!result) throw new Error('Invalid captcha response');
resolve(result);
})