aiko-chan-ai / discord.js-selfbot-v13

An unofficial discord.js fork for creating selfbots
https://discordjs-self-v13.netlify.app
GNU General Public License v3.0
751 stars 160 forks source link

DiscordAPIError: Unknown Message --- invite.acceptInvite/client.acceptInvite --- 2.11.0 #551

Closed DoctorWhoFR closed 1 year ago

DoctorWhoFR commented 1 year ago

Which package has the bugs?

The core library

Issue description

Hi, i try accepting an invitation using the bot.

But with this two code, i have the same error : await client.fetchInvite('Nk8EMTudjJ').then(async invite => { console.log(invite); await invite.acceptInvite(false); }); client.acceptInvite("https://discord.gg/Nk8EMTudjJ")

Error : DiscordAPIError: Unknown Message at RequestHandler.execute (C:\Users\Utilisateur\Desktop\discord-spammer\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:423:13) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async RequestHandler.push (C:\Users\Utilisateur\Desktop\discord-spammer\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:80:14) at async Invite.acceptInvite (C:\Users\Utilisateur\Desktop\discord-spammer\node_modules\discord.js-selfbot-v13\src\structures\Invite.js:339:5) at async C:\Users\Utilisateur\Desktop\discord-spammer\app.js:30:3 at async Client.<anonymous> (C:\Users\Utilisateur\Desktop\discord-spammer\app.js:28:2) { method: 'post', path: '/invites/Nk8EMTudjJ', code: 10008, httpStatus: 403, captcha: null, requestData: { json: { captcha_key: '<captcha key>', captcha_rqtoken: 'captcha rqtoken' }, files: [] }, retries: 2 }

I dont think that the problem is the captcha because this is perfectly working for sending message or other.

Code sample

await client.fetchInvite('Nk8EMTudjJ').then(async invite => {
        console.log(invite);
        await invite.acceptInvite(false);
});

client.acceptInvite("https://discord.gg/Nk8EMTudjJ")

Package version

2.11.0

Node.js version

v16.12.0

Operating system

window

Priority this issue should have

Low (slightly annoying)

Checklist

Additional Information

No response

DoctorWhoFR commented 1 year ago

log.txt

DoctorWhoFR commented 1 year ago

https://pastebin.com/raw/BiAcsFf1

aiko-chan-ai commented 1 year ago

this error appears randomly, i can't fix it at the moment

aiko-chan-ai commented 1 year ago

try the latest version