From 3e09cea4aa25d8f8746f224ead7a14869e90647d Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Tue, 15 Aug 2023 18:44:56 +0700 Subject: [PATCH] Update CaptchaSolver.js --- src/rest/CaptchaSolver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rest/CaptchaSolver.js b/src/rest/CaptchaSolver.js index 340bb7c..eef0538 100644 --- a/src/rest/CaptchaSolver.js +++ b/src/rest/CaptchaSolver.js @@ -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); })