From 15c6d9344a6c6a4922cb310e7bcf7494a8388f4f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 15 Aug 2021 00:45:56 +0200 Subject: [PATCH] fddf --- files/routes/discord.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/discord.py b/files/routes/discord.py index 64b427178..4fc7baa86 100644 --- a/files/routes/discord.py +++ b/files/routes/discord.py @@ -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