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

Joining a guild #31

Closed aSashaaa closed 2 years ago

aSashaaa commented 2 years ago

Hi!

I was wondering if you could tell me how can i join a guild. I have read the risky things on the readme page but the joinGuild() function is not declared.

Thanks

aiko-chan-ai commented 2 years ago

Hi!

I was wondering if you could tell me how can i join a guild. I have read the risky things on the readme page but the joinGuild() function is not declared.

Thanks

Can you give me more information about the version, the code you use,...

aSashaaa commented 2 years ago

Yeah sure. I am using the latest version of your module (discord.js-selfbot-v13) and i was trying to join a discord server with sending post requests to the api since there is no function implemented for this.

const joinGuild = async (inviteCode, token) => {
        const browser = await puppeteer.launch({ headless: false });
        const page = await browser.newPage();
        await page.goto('https://discord.com/login');

        await page.evaluate(({inviteCode, token}) => {
            const x = new XMLHttpRequest();
            console.log(inviteCode);
            x.open('POST', `https://discord.com/api/v8/invites/${inviteCode}?inputValue=${inviteCode}&with_counts=true&with_expiration=true`);
            x.setRequestHeader('Authorization', token);
            x.send();
        },{inviteCode, token});

        console.log("joined server.");
        //Maybe good idea to close browser after executing
    };

I tried this code but it seems not working.

aiko-chan-ai commented 2 years ago

Yeah sure. I am using the latest version of your module (discord.js-selfbot-v13) and i was trying to join a discord server with sending post requests to the api since there is no function implemented for this.

const joinGuild = async (inviteCode, token) => {
        const browser = await puppeteer.launch({ headless: false });
        const page = await browser.newPage();
        await page.goto('https://discord.com/login');

        await page.evaluate(({inviteCode, token}) => {
            const x = new XMLHttpRequest();
            console.log(inviteCode);
            x.open('POST', `https://discord.com/api/v8/invites/${inviteCode}?inputValue=${inviteCode}&with_counts=true&with_expiration=true`);
            x.setRequestHeader('Authorization', token);
            x.send();
        },{inviteCode, token});

        console.log("joined server.");
        //Maybe good idea to close browser after executing
    };

I tried this code but it seems not working.

https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Guild.md#join-guild-using-invite

i think i already made this function

aiko-chan-ai commented 2 years ago
const joinGuild = async (inviteCode, client) => {
await client.fetchInvite(inviteCode).then(async invite => {
  await invite.acceptInvite(true); 
});
};
aSashaaa commented 2 years ago

DiscordAPIError: You need to update your app to join this server.

I implemented the above sent function. it replies with this.

aiko-chan-ai commented 2 years ago

DiscordAPIError: You need to update your app to join this server.

it replies with this.

so you got hcaptcha, sorry i don't have a way to ignore it

aSashaaa commented 2 years ago

So i have to solve the captcha?

aiko-chan-ai commented 2 years ago

So i have to solve the captcha?

yes, i was thinking how to solve the captcha by getting data about the image, then using an AI website that can analyze the photo, then check the correct result. It's a script I'm using to bypass hcaptcha although it's a bit slow.

aSashaaa commented 2 years ago

i see. is that script can solve this captcha? If yes, then could you send it to me? It doesnt matter if its a bit slow.

aiko-chan-ai commented 2 years ago

i see. is that script can solve this captcha? If yes, then could you send it to me? It doesnt matter if its a bit slow.

here is the script on chrome, you can have a look at it https://greasyfork.org/en/scripts/425854-hcaptcha-solver-with-browser-trainer-automatically-solves-hcaptcha-in-browser

https://www.reddit.com/r/Discord_selfbots/comments/tq6g2v/captcha_bypass_new_captcha_keys_question/