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); })