Closed Yusufkulcu closed 8 months ago
Error image
You can just set an interval for a long time.
setInterval(() => false, 1 << 12);
If you don't like that, start an HTTP server on a random unused port.
Neither of these should be used in production, for obvious reasons. I don't see why you would want to keep the terminal open in the first place, but this should work for now.
You can just set an interval for a long time.
setInterval(() => false, 1 << 12);
If you don't like that, start an HTTP server on a random unused port.
Neither of these should be used in production, for obvious reasons. I don't see why you would want to keep the terminal open in the first place, but this should work for now.
Where should I use this function? The reason I don't want the console to remain open is that I am performing account verification. When such a problem arises, the console closes, and the process does not continue to other accounts, leaving the operation incomplete.
client.on('error', () => false)
client.on('error', () => false)
Where should I use this?
client.on('ready', async () => {
await client.destroy()
}).on('error', () => false)```
client.on('ready', async () => { await client.destroy() }).on('error', () => false)```
unfortunately it didn't happen :(
edit from
const login = await client.login(token)
const username = client.user.username
client.on('ready', async () => {
await client.destroy()
})
to
client.on('ready', async () => {
await client.destroy()
}).on('error', () => false)
const login = await client.login(token)
const username = client.user.username
edit from
const login = await client.login(token) const username = client.user.username client.on('ready', async () => { await client.destroy() })
to
client.on('ready', async () => { await client.destroy() }).on('error', () => false) const login = await client.login(token) const username = client.user.username
It happened like this, but even when it encounters account verification during login, I don't receive an error stating that the account is inactive because it logs into the account. How can I solve this issue?
Except for the issue mentioned above, I'm experiencing the error in the image. What could be the problem?
HTTPError [DiscordjsError]: Request to use token, but token was unavailable to the client.
edit from
const login = await client.login(token) const username = client.user.username client.on('ready', async () => { await client.destroy() })
to
client.on('ready', async () => { await client.destroy() }).on('error', () => false) const login = await client.login(token) const username = client.user.username
I wonder what might be causing this error; I'm getting this error during the server joining process. The account is active. I can directly log into the server via the Discord application. I would be very grateful if you could help
try updating to v3
try updating to v3
I don't understand
const Discord = require('discord.js-selfbot-v13'); // v3.0.0
const Captcha = require('2captcha');
const solver = new Captcha.Solver('key');
const client = new Discord.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);
},
});
client.on('ready', async () => {
console.log('Ready!', client.user.tag);
client.acceptInvite('mdmc');
});
client.login('token');
const Discord = require('discord.js-selfbot-v13'); // v3.0.0 const Captcha = require('2captcha'); const solver = new Captcha.Solver('key'); const client = new Discord.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); }, }); client.on('ready', async () => { console.log('Ready!', client.user.tag); client.acceptInvite('mdmc'); }); client.login('token');
Thank you, I will try it, I would be very grateful if you could help me with the following problem.
https://github.com/aiko-chan-ai/discord.js-selfbot-v13/issues/961
captchaSolver: function (captcha, UA) { return solver .hcaptcha(captcha.captcha_sitekey, 'discord.com', { invisible: 1, userAgent: UA, data: captcha.captcha_rqdata, }) .then((res) => res.data); },
How can I use this method with capmonster?
Which library do you want to use?
Which library do you want to use?
node-capmonster
const { HCaptchaTask } = require('node-capmonster');
const solver = new HCaptchaTask('api_key');
const client = new Discord.Client({
captchaSolver: function (captcha, UA) {
const task = solver.task({
websiteKey: captcha.captcha_sitekey,
websiteURL: 'discord.com',
isInvisible: true,
data: captcha.captcha_rqdata,
});
return solver
.createWithTask(task)
.then((taskId) => solver.joinTaskResult(taskId))
.then((response) => response.gRecaptchaResponse);
},
});
const { HCaptchaTask } = require('node-capmonster'); const solver = new HCaptchaTask('api_key'); const client = new Discord.Client({ captchaSolver: function (captcha, UA) { const task = solver.task({ websiteKey: captcha.captcha_sitekey, websiteURL: 'discord.com', isInvisible: true, data: captcha.captcha_rqdata, }); return solver .createWithTask(task) .then((taskId) => solver.joinTaskResult(taskId)) .then((response) => response.gRecaptchaResponse); }, });
I get this error
How can I solve the above problem?
const { HCaptchaTask } = require('node-capmonster'); const solver = new HCaptchaTask('api_key'); const client = new Discord.Client({ captchaSolver: function (captcha, UA) { const task = solver.task({ websiteKey: captcha.captcha_sitekey, websiteURL: 'discord.com', isInvisible: true, data: captcha.captcha_rqdata, }); return solver .createWithTask(task) .then((taskId) => solver.joinTaskResult(taskId)) .then((response) => response.gRecaptchaResponse); }, });
How can I solve the above problem?
maybe capmonster requires full URL, try with https://discord.com
Which package has the bugs?
The core library
Issue description
After logging into the account, if there is an issue during the login process, it throws the error below and the console closes. I want it to only show the error without closing the console. How can I achieve this?
Code sample
Package version
2.15.0
Node.js version
Node.js v20.10.0
Operating system
Windows 11
Priority this issue should have
High (immediate attention needed)
Checklist
Additional Information
No response