[Python] Python - Discord login and join server

Discussão em 'Python' iniciado por Stack, Julho 20, 2025.

  1. Stack

    Stack Membro Participativo

    im trying to make a script which makes 2 or more accounts to login and join a server. what i have found is this

    import requests
    #base url
    url = "https://discord.com/api/v9/invites/{}"
    #headers, add more headers to make sure you dont get banned by discord for automating, you can see your headers by pressing ctrl+shift+i and going to the networks tab.
    headers = {
    "Authorization":"your token here"
    }

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


    so if you have any idea what i have to do i would like to know.

    Continue reading...

Compartilhe esta Página