fix: CaptchaSolver - Cannot read properties of undefined (reading 'slice')
This commit is contained in:
parent
0d99a2862a
commit
a6099af525
@ -47,9 +47,7 @@ module.exports = class CaptchaSolver {
|
||||
sitekey: siteKey,
|
||||
url: 'https://discord.com',
|
||||
})
|
||||
.then(res => {
|
||||
resolve(res);
|
||||
})
|
||||
.then(res => (res ? resolve(res) : reject(new Error('Captcha could not be solved'))))
|
||||
.catch(reject);
|
||||
});
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user