Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
Arex69 opened this issue Feb 25, 2024 · 5 comments
Open
3 tasks done

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

Arex69 opened this issue Feb 25, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Arex69
Copy link

Arex69 commented Feb 25, 2024

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

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

Additional Information

No response

@Arex69 Arex69 added the bug Something isn't working label Feb 25, 2024
@Arex69
Copy link
Author

Arex69 commented Feb 26, 2024

@therealolie
Copy link

isnt servers undefined in the example code?

@therealolie
Copy link

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

@therealolie
Copy link

RFTM

@Egemenbdk
Copy link

doesnt work for me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants