Replies: 1 comment 9 replies
-
I have to say that many APIs from Discord are currently capable of detecting anomalies, but at the moment, I don’t have the time (as I’m preparing for exams and the TOEIC) and enough tokens to investigate. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When the server's private url changes, I first enter the correct 2-factor authentication code, but it gives an error and resets the token. I leave the error and the code below.
code :
const { Client } = require("discord.js-selfbot-v13");
const client = new Client();
const twoFactor = require('node-2fa');
const guildId = "1166404218547093516"; // Sunucu ID'nizi buraya koyun
const vanityCode = "uptimedss";
const secret = "wh5p lcjx ivor 23jm gqdp 3thm rcad hkfg"; // node-2fa için kullanılan 2FA secret
client.on("ready", async () => {
console.log(
${client.user.username} hazır!
);const guild = client.guilds.cache.get(guildId);
if (!guild) {
console.error("Sunucu bulunamadı!");
return;
}
try {
// Her istek için yeni bir MFA kodu oluşturun
const newMfaCode = twoFactor.generateToken(secret).token;
} catch (error) {
console.error(error);
}
});
client.login("");
error :
sunucunukiralanet hazır!
HTTPError [DiscordAPIError]: Invalid two-factor code
at RequestHandler.execute (C:\Users\Baran\Desktop\denenen\node_mod at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RequestHandler.push (C:\Users\Baran\Desktop\denenen\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:63:14)
at async Guild.setVanityCode (C:\Users\Baran\Desktop\denenen\node_modules\discord.js-selfbot-v13\src\structures\Guild.js:1545:18) {
code: 500,
method: 'patch',
path: '/guilds/1166404218547093516/vanity-url',
requestData: { json: { code: 'uptimedss' }, files: [], headers: undefined }
}
PS C:\Users\Baran\Desktop\denenen> node index
C:\Users\Baran\Desktop\denenen\node_modules\discord.js-selfbot-v13\src\client\websocket\WebSocketManager.js:244
throw new Error(WSCodes[error.code]);
^
Error [TOKEN_INVALID]: An invalid token was provided.
at WebSocketManager.createShards (C:\Users\Baran\Desktop\denenen\node_modules\discord.js-selfbot-v13\src\client\websocket\WebSocketManager.js:244:15)
at async Client.login (C:\Users\Baran\Desktop\denenen\node_modules\discord.js-selfbot-v13\src\client\Client.js:267:7) {
[Symbol(code)]: 'TOKEN_INVALID'
}
Node.js v20.18.0
Beta Was this translation helpful? Give feedback.
All reactions