client.acceptInvite() isn't returning anything
Arex69 opened this issue · comments
Which package has the bugs?
The core library
Issue description
Code was working previously but it suddenly stopped working. There are no errors, nothing, it just doesn't work.
Code sample
const client = new Client({
captchaSolver: function (captcha, UA) {
return solver
.hcaptcha(captcha.captcha_sitekey, 'discord.com', {
invisible: 1,
userAgent: UA,
data: captcha.captcha_rqdata,
})
.then(res => res.data)
.catch(e => console.log(e));
},
captchaRetryLimit: 5,
http: {
headers: { "x-super-properties": "ewogICJvcyI6ICJXaW5kb3dzIiwKICAiYnJvd3NlciI6ICJEaXNjb3JkIENsaWVudCIsCiAgInJlbGVhc2VfY2hhbm5lbCI6ICJjYW5hcnkiLAogICJjbGllbnRfdmVyc2lvbiI6ICIxLjAuNDkiLAogICJvc192ZXJzaW9uIjogIjEwLjAuMjI2MjEiLAogICJvc19hcmNoIjogIng2NCIsCiAgInN5c3RlbV9sb2NhbGUiOiAiZW4tVVMiLAogICJjbGllbnRfYnVpbGRfbnVtYmVyIjogIjE1MjQ1MCIsCiAgImNsaWVudF9ldmVudF9zb3VyY2UiOiBudWxsCn0=" },
agent: proxy
},
ws: {
agent: proxy,
},
});
client.on('ready', async () => {
for (let i = 0; i < servers.length; i++) {
try {
const guild = await client.acceptInvite(`${servers[i]}`)
} catch (e) {
console.log(e)
}
}
})
client.login(token)
Package version
3.1.4
Node.js version
18.14.2
Operating system
No response
Priority this issue should have
Medium (should be fixed soon)
Checklist
- I have searched the open issues for duplicates.
- I have shared the entire traceback.
- I am using a user token (and it isn't visible in the code).
Additional Information
No response
@aiko-chan-ai https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/examples/Proxy.js don't seem to be working