discord.js-selfbot-v13 icon indicating copy to clipboard operation
discord.js-selfbot-v13 copied to clipboard

client.acceptInvite() isn't returning anything

Open Arex69 opened this issue 1 year ago • 5 comments

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

  • [X] I have searched the open issues for duplicates.
  • [X] I have shared the entire traceback.
  • [X] I am using a user token (and it isn't visible in the code).

Additional Information

No response

Arex69 avatar Feb 25 '24 06:02 Arex69

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

Arex69 avatar Feb 26 '24 05:02 Arex69

isnt servers undefined in the example code?

ghost avatar Mar 16 '24 11:03 ghost

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

ghost avatar Mar 16 '24 11:03 ghost

RFTM

ghost avatar Mar 16 '24 11:03 ghost

doesnt work for me too

Egemenbdk avatar Mar 20 '24 02:03 Egemenbdk

fixed

aiko-chan-ai avatar Jul 06 '24 06:07 aiko-chan-ai