Is there a join a server and leave a server method #19
-
Since this library is not documented I can't figure out |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Sorry for the late reply, but I don't think these method have been implemented yet here. You could try Discord-S.C.U.M. Keep in mind that join a server has been listed there as a "risky action", so be careful |
Beta Was this translation helpful? Give feedback.
-
As of right now, no matter how hard you try, joining a guild via the API results in a phone lock. I even scraped the specific API and headers being sent during the join click in the client, but it simply is getting the token locked. Here is my sample code: # Imports
import requests
# HTTP Requests
token = input("Token: ")
invite_link = input("Add tokens to discord.gg/")
join = requests.post(
"https://discord.com/api/v9/invites/" + invite_link,
headers={
"Host": "discord.com",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0",
"Accept": "*/*",
"Accept-Language": "en-US",
"Accept-Encoding": "gzip, deflate, br",
"Authorization": token,
"Origin": "https://discord.com",
"Alt-Used": "discord.com",
"Connection": "keep-alive",
"Referer": "https://discord.com/channels/@me",
"Cookie": "__dcfduid=6eb4d83f0b0fda7b7f3bea5d8d7afc78; OptanonConsent=isIABGlobal=false&datestamp=Fri+Jul+18+2021+20%3A02%3A24+GMT-0400+(Eastern+Daylight+Time)&version=6.17.0&hosts=&landingPath=https%3A%2F%2Fdiscord.com%2F&groups=C0001%3A1%2CC0002%3A1%2CC0003%3A1; locale=en-US",
"Content-Length": "0",
"TE": "Trailers",
},
)
# Display Results
print(join.status_code)
print(join.text) |
Beta Was this translation helpful? Give feedback.
Sorry for the late reply, but I don't think these method have been implemented yet here. You could try Discord-S.C.U.M. Keep in mind that join a server has been listed there as a "risky action", so be careful