From c5af5ab91a8674798d579841d47c82ab0408ef11 Mon Sep 17 00:00:00 2001 From: thecosmos Date: Tue, 7 May 2019 21:46:21 +0530 Subject: [PATCH] Minor name change --- flask_discord/client.py | 2 +- tests/test_app.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flask_discord/client.py b/flask_discord/client.py index 8cc3ab5..5048a41 100644 --- a/flask_discord/client.py +++ b/flask_discord/client.py @@ -5,7 +5,7 @@ from flask import request, session, redirect class DiscordOAuth2Session(_http.DiscordOAuth2HttpClient): - def make_session(self, scope=None): + def create_session(self, scope=None): scope = scope or request.args.get("scope", str()).split() or configs.DEFAULT_SCOPES discord_session = self._make_session(scope=scope) authorization_url, state = discord_session.authorization_url(configs.AUTHORIZATION_BASE_URL) diff --git a/tests/test_app.py b/tests/test_app.py index e88ec57..f055472 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -13,7 +13,7 @@ discord = DiscordOAuth2Session(OAUTH2_CLIENT_ID, OAUTH2_CLIENT_SECRET, OAUTH2_RE @app.route("/") def index(): - return discord.make_session(configs.ALL_SCOPES) + return discord.create_session(configs.ALL_SCOPES) @app.route("/callback")