[Python] Discord auto join server

Discussão em 'Python' iniciado por Stack, Agosto 24, 2025.

  1. Stack

    Stack Membro Participativo

    When I run the code I get status code 400 and im unsure on how to fix it so it gets 200.

    its meant to auto join a discord server using python requests and my discord token.

    #base url
    url = "https://discord.com/api/v10/invites/{}"
    headers = {
    "Authorization":"mydiscordtoken"
    }

    r = requests.post(url.format("N5sCvu4C"), headers=headers, json={})
    print(r.status_code) #prints 200 if all went well

    Continue reading...

Compartilhe esta Página