Minor name change

This commit is contained in:
thecosmos
2019-05-07 21:46:21 +05:30
parent 628103f5e4
commit c5af5ab91a
2 changed files with 2 additions and 2 deletions

View File

@@ -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)