forked from MarseyWorld/MarseyWorld
fddf
parent
bfefc48baf
commit
15c6d9344a
|
@ -24,7 +24,7 @@ def join_discord(v):
|
|||
|
||||
state=f"{now}.{state}"
|
||||
|
||||
return redirect(f"https://discord.com/api/oauth2/authorize?client_id={CLIENT_ID}&redirect_uri=https%3A%2F%2F{app.config['SERVER_NAME']}%2Fdiscord_redirect&response_type=code&scope=guilds.join&state={state}")
|
||||
return redirect(f"https://discord.com/api/oauth2/authorize?client_id={CLIENT_ID}&redirect_uri=https%3A%2F%2F{app.config['SERVER_NAME']}%2Fdiscord_redirect&response_type=code&scope=identify%20guilds.join&state={state}")
|
||||
|
||||
@app.get("/discord_redirect")
|
||||
@auth_required
|
||||
|
|
Loading…
Reference in New Issue