Advertisement
Guest User

Join a Discord Server with Python Requests (Discord Token)

a guest
Mar 29th, 2021
5,458
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. import requests
  2.  
  3. def join(token, server_invite):
  4.     header = {"authorization": token}
  5.     r = requests.post("https://discord.com/api/v8/invites/{}".format(server_invite), headers=header)
  6.  
Advertisement
Comments
  • abada11
    1 year
    Comment was deleted
Add Comment
Please, Sign In to add comment
Advertisement