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
712 stars 148 forks source link

DiscordAPIError: Unknown Message with status 403 #523

Closed 6ichem closed 1 year ago

6ichem commented 1 year ago

Which package has the bugs?

The core library

Issue description

I wrote the function below to join servers but it keeps returning this error:

DiscordAPIError: Unknown Message
    at RequestHandler.execute (/Users/6ix/discord-bot/node_modules/discord.js-selfbot-v13/src/rest/RequestHandler.js:422:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push (/Users/6ix/discord-bot/node_modules/discord.js-selfbot-v13/src/rest/RequestHandler.js:80:14)
    at async Invite.acceptInvite (/Users/6ix/discord-bot/node_modules/discord.js-selfbot-v13/src/structures/Invite.js:339:5)
    at async Discord.joinServer (webpack-internal:///(api)/./services/discord.ts:166:27)
    at async handler (webpack-internal:///(api)/./pages/api/join.ts:182:26)
    at async Object.apiResolver (/Users/6ix/discord-bot/node_modules/next/dist/server/api-utils/node.js:184:9)
    at async DevServer.runApi (/Users/6ix/discord-bot/node_modules/next/dist/server/next-server.js:397:9)
    at async Object.fn (/Users/6ix/discord-bot/node_modules/next/dist/server/base-server.js:473:37)
    at async Router.execute (/Users/6ix/discord-bot/node_modules/next/dist/server/router.js:233:32) {
  method: 'post',
  path: '/invites/UmH4afNj',
  code: 10008,
  httpStatus: 403,
  captcha: null,
  requestData: { json: {}, files: [] }
}

Code sample

async joinServer(invite: string = "") {
  const client = new Client({
    captchaSolver: async (data: any, userAgent: any) => {
      // Placeholder for custom solving captcha code using Capmonster

      return captchaSolution;
    },
    checkUpdate: false,
  });

  client.login(this.base_token.trim());

  let inviteFetched = await client.fetchInvite(invite);

  try {
    const guild = await inviteFetched.acceptInvite(true);
    console.log(guild);
    return guild;
  } catch (err) {
    console.log(err);
    return false;
  }
}

Package version

2.10.1

Node.js version

16.17.1

Operating system

MacOS

Priority this issue should have

High (immediate attention needed)

Checklist

Additional Information

No response

aiko-chan-ai commented 1 year ago

:c i will check it

6ichem commented 1 year ago

:c i will check it

I think Discord updated their API to prevent selfbots, even if you mimic a working request from the browser 1:1 it would still throw the same error 🤔

aiko-chan-ai commented 1 year ago

confirmed, I wrote the wrong code :c

Strooss commented 1 year ago

Actually i just get the same error rn

Strooss commented 1 year ago

confirmed, I wrote the wrong code :c

does it fixed now?

6ichem commented 1 year ago

confirmed, I wrote the wrong code :c

Point to the commit that fixes it once it's pushed please 🙏

aiko-chan-ai commented 1 year ago

image ...

Strooss commented 1 year ago

image ...

Oh that's weird.

aiko-chan-ai commented 1 year ago

I will check again later 😭

Strooss commented 1 year ago

I will check again later 😭

does this will take too much time? 😭

aiko-chan-ai commented 1 year ago

maybe on sunday :c

Strooss commented 1 year ago

Ooooof, I'm working on a paid project for someone :-

aiko-chan-ai commented 1 year ago

I have a exam coming up 😢

aiko-chan-ai commented 1 year ago

i think discord has got a patch (maybe) https://github.com/V4NSH4J/discord-mass-DM-GO/issues/886 😭

Strooss commented 1 year ago

i think discord has got a patch (maybe) V4NSH4J/discord-mass-DM-GO#886 😭

OHHHHHHHHHHHHHH

Strooss commented 1 year ago

i think discord has got a patch (maybe) V4NSH4J/discord-mass-DM-GO#886 😭

did you find a fix?

aiko-chan-ai commented 1 year ago

https://t.me/DMDGOBugsAndFeatures/573

Strooss commented 1 year ago

https://t.me/DMDGOBugsAndFeatures/573

So it's a problem from discord side?

aiko-chan-ai commented 1 year ago

not really, I fixed it image

aiko-chan-ai commented 1 year ago

@6ichem @Strooss try latest ver.

CodeInEcho commented 1 year ago

Still not working

image
aiko-chan-ai commented 1 year ago

💀

Strooss commented 1 year ago

@6ichem @Strooss try latest ver.

actually it worked and the account joined, still the part of boosting it did not boost, i'll check my code

aiko-chan-ai commented 1 year ago
Strooss commented 1 year ago

why is client.billing.fetchGuildBoosts(); return for me a collection of the 2 boosts but with cooldownEndsAt = 1970-01-01T00:00:00.000Z also without ended prop ..

aiko-chan-ai commented 1 year ago

image idk

Strooss commented 1 year ago

image idk

hmm for me is not like this..

kevalane commented 1 year ago

I'm still having the same issue post-hcaptcha (code 10008 & Unknown Message), @Strooss did you do anything in particular to get it working?

6ichem commented 1 year ago

I'm still having the same issue post-hcaptcha (code 10008 & Unknown Message), @Strooss did you do anything in particular to get it working?

It's not working still @aiko-chan-ai @Strooss @kevalane

Strooss commented 1 year ago

I'm still having the same issue post-hcaptcha (code 10008 & Unknown Message), @Strooss did you do anything in particular to get it working?

It's not working still @aiko-chan-ai @Strooss @kevalane

I don't know then it worked for me. BTW i did my own capatcha solver im not using 2captcha @6ichem @kevalane

CodeInEcho commented 1 year ago

@Strooss Are you sure your request has hcaptcha activated?I also tried capmonster.

6ichem commented 1 year ago

I'm still having the same issue post-hcaptcha (code 10008 & Unknown Message), @Strooss did you do anything in particular to get it working?

It's not working still @aiko-chan-ai @Strooss @kevalane

I don't know then it worked for me. BTW i did my own capatcha solver im not using 2captcha @6ichem @kevalane

I don't think it matters what captcha service you use

Strooss commented 1 year ago

@Strooss Are you sure your request has hcaptcha activated?I also tried capmonster.

No, actually i use capmonster also and i have set captchaService: 'custom' and captchaSolver is my own function.

aiko-chan-ai commented 1 year ago

https://github.com/aiko-chan-ai/discord.js-selfbot-v13/commit/779fc7a5f4d4389851d0c21e50346df53fd1c041

aiko-chan-ai commented 1 year ago

tested, it can work after i try it with vpn (and no vpn) i will update it soon

spexvs2 commented 1 year ago

i hope so much it will get fixed dayum

aiko-chan-ai commented 1 year ago

2.10.3

KADIUMX commented 1 year ago

wdym

13thang08 commented 1 year ago

I got another error when trying to join a guild. I used version 2.10.4

DiscordAPIError: captcha-required
b2b02ab5-7dae-4d6f-830e-7b55634c888b
hcaptcha
CztQHu/J0KsJm8GuXqkzOloF9Sx2fI4GE8NbSLVsawDVuD3RiSZgLYPhlmz8ZSNfel7nv2a0g7PmRaOgIi6/iadXuHIAnQdOgh+cK/eEwFsZIy5HiQ6YQW/5LAjXZ3nT6/6WjrkAa+JYo1EUx7+B8RA+IhdF7U2nLTlTHB5z
IkE5Rko1VllnUjFjTWE5WW9zNE5wWm05Y0VaRjlQOVZ5SzhGcEdsMWNDaWMxUVpHMlQrM3lkV3kwNG9TeFpMTkVkaEw0U3c9PUM2c3JSY1JKcTdpa0cwdlYi.Y-usew.faPxTnU40M77_8XMF76Ko2IzT24
    at RequestHandler.execute (/mnt/c/Users/thang/work/auto-tools/node_modules/discord.js-selfbot-v13/src/rest/RequestHandler.js:423:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async RequestHandler.push (/mnt/c/Users/thang/work/auto-tools/node_modules/discord.js-selfbot-v13/src/rest/RequestHandler.js:80:14)
    at async Invite.acceptInvite (/mnt/c/Users/thang/work/auto-tools/node_modules/discord.js-selfbot-v13/src/structures/Invite.js:339:5)
    at async main (/mnt/c/Users/thang/work/auto-tools/discord-joiner/joiner.js:25:23) {
  method: 'post',
  path: '/invites/7NPXr9sE',
  code: undefined,
  httpStatus: 400,
  captcha: {
    captcha_key: [ 'captcha-required' ],
    captcha_sitekey: 'b2b02ab5-7dae-4d6f-830e-7b55634c888b',
    captcha_service: 'hcaptcha',
    captcha_rqdata: 'CztQHu/J0KsJm8GuXqkzOloF9Sx2fI4GE8NbSLVsawDVuD3RiSZgLYPhlmz8ZSNfel7nv2a0g7PmRaOgIi6/iadXuHIAnQdOgh+cK/eEwFsZIy5HiQ6YQW/5LAjXZ3nT6/6WjrkAa+JYo1EUx7+B8RA+IhdF7U2nLTlTHB5z',
    captcha_rqtoken: 'IkE5Rko1VllnUjFjTWE5WW9zNE5wWm05Y0VaRjlQOVZ5SzhGcEdsMWNDaWMxUVpHMlQrM3lkV3kwNG9TeFpMTkVkaEw0U3c9PUM2c3JSY1JKcTdpa0cwdlYi.Y-usew.faPxTnU40M77_8XMF76Ko2IzT24'
  },
  requestData: {
    json: {
      captcha_key: 'P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.hKdwYXNza2V5xQmGIE9UXJjacIOE34D8JX0f6E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mRfaWTOAzGDb6JwZAA.Lh6b8OhvWtO_H6qEslrtelh6RU3W2TQNx1wF12oPAE8',
      captcha_rqtoken: 'Im9pT21YMmt4cFdWN3oxTmZzTTQ5dVJSR1kzYTNJajVRMktCYUs0czhraUJmdm5BZWYxM0d4ZGQ4aEQ1RmVCNit0OVUvb1E9PW1PNmlZK0ZrNzJwS1p5L00i.Y-usaA.Pl5z-QP6Dq5STXHZxcndnpxDAsQ'
    },
    files: []
  }
}
Strooss commented 1 year ago

yes cause u need a capatcha service.

rvdce commented 1 year ago

I'm getting same issue like Unknown message in latest version.

aiko-chan-ai commented 1 year ago

try the latest version

TejasLamba2006 commented 1 year ago

@aiko-chan-ai am still getting the error am on version 2.13.6