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
775 stars 165 forks source link

client.acceptInvite() isn't returning anything #1065

Closed Arex69 closed 3 months ago

Arex69 commented 7 months ago

Which package has the bugs?

The core library

Issue description

Code was working previously but it suddenly stopped working. There are no errors, nothing, it just doesn't work.

Code sample

const client = new 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)
              .catch(e => console.log(e));
        },
        captchaRetryLimit: 5,
        http: {
            headers: { "x-super-properties": "ewogICJvcyI6ICJXaW5kb3dzIiwKICAiYnJvd3NlciI6ICJEaXNjb3JkIENsaWVudCIsCiAgInJlbGVhc2VfY2hhbm5lbCI6ICJjYW5hcnkiLAogICJjbGllbnRfdmVyc2lvbiI6ICIxLjAuNDkiLAogICJvc192ZXJzaW9uIjogIjEwLjAuMjI2MjEiLAogICJvc19hcmNoIjogIng2NCIsCiAgInN5c3RlbV9sb2NhbGUiOiAiZW4tVVMiLAogICJjbGllbnRfYnVpbGRfbnVtYmVyIjogIjE1MjQ1MCIsCiAgImNsaWVudF9ldmVudF9zb3VyY2UiOiBudWxsCn0=" },
            agent: proxy
        },
        ws: {
            agent: proxy, 
        },
    });

    client.on('ready', async () => {
        for (let i = 0; i < servers.length; i++) {
            try {
                const guild = await client.acceptInvite(`${servers[i]}`)
            } catch (e) {
                console.log(e)
            }
        }
    })

    client.login(token)

Package version

3.1.4

Node.js version

18.14.2

Operating system

No response

Priority this issue should have

Medium (should be fixed soon)

Checklist

Additional Information

No response

Arex69 commented 7 months ago

@aiko-chan-ai https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/examples/Proxy.js don't seem to be working

ghost commented 6 months ago

isnt servers undefined in the example code?

ghost commented 6 months ago

client.acceptInvite takes a string argument, for example https://discord.gg/genshinimpact, not a guils

ghost commented 6 months ago

RFTM

Egemenbdk commented 6 months ago

doesnt work for me too

aiko-chan-ai commented 3 months ago

fixed