master
Aevann1 2021-08-15 00:45:56 +02:00
parent bfefc48baf
commit 15c6d9344a
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ def join_discord(v):
state=f"{now}.{state}" 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") @app.get("/discord_redirect")
@auth_required @auth_required