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

Error join guild #684

Open
3 tasks done
kwaki01 opened this issue Apr 15, 2024 · 0 comments
Open
3 tasks done

Error join guild #684

kwaki01 opened this issue Apr 15, 2024 · 0 comments
Labels
unconfirmed bug Unconfirmed bug

Comments

@kwaki01
Copy link

kwaki01 commented Apr 15, 2024

Summary

Not work join guild or accept invite

Reproduction Steps

In the latest build, the connection to my server does not work. await client.join_guild(1095380562245590236, lurking = True) doesn't work. By invitation await client.accept_invite('https://discord.gg/nUeZdpUzme') also does not work. When connecting by invitation, it asks you to solve a captcha in which the captcha_rqdata parameter is not passed.

Code

import discord
import asyncio

token = 'MTA2NjA5ODY5ODc3MTIzOTAzNQ.GZ79t9.MzkbTfCeftF_b9PFpinHgUo-xeFFfZAVt1srCI'
proxy = 'http://195.208.127.244:63408'
proxy_user = 'D8Y9p8n8'
proxy_password = '6d8kU8i8'

async def CaptchaSolver(data, client):
    data = data.json
    ...
    return solver


policy = asyncio.WindowsSelectorEventLoopPolicy()
asyncio.set_event_loop_policy(policy)
client = discord.Client(captcha_handler = CaptchaSolver, proxy = proxy, proxy_auth = aiohttp.BasicAuth(proxy_user, proxy_password))

@client.event
async def on_connect():
    await client.accept_invite('https://discord.gg/nUeZdpUzme')
    # or
    # await client.join_guild(1095380562245595036, lurking = True)

try:
    client.run(token, reconnect = False)
# Ctrl + Break
except KeyboardInterrupt:
    print('STOP!!!!')
    client.close()
except Exception as e:
    print('Error  : ' + type(e).__name__ + ' : ' + str(e))

Expected Results

{'captcha_key': ['You need to update your app to join this server.'], 'captcha_sitekey': 'f5561ba9-8f1e-40ca-9b5b-a0b3f719ef34', 'captcha_service': 'hcaptcha'} - outputting the input parameter to the function for solving captcha (data in CaptchaSolver)

Actual Results

not work

System Information

  • Python v3.11.6-final
  • discord.py-self v2.1.0-alpha
    • discord.py-self metadata: v2.1.0a0
  • aiohttp v3.9.1
  • system info: Windows 10 10.0.20348

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

@kwaki01 kwaki01 added the unconfirmed bug Unconfirmed bug label Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unconfirmed bug Unconfirmed bug
Projects
None yet
Development

No branches or pull requests

1 participant