mirror of
https://github.com/yawaflua/Flask-Discord.git
synced 2025-12-10 12:29:30 +02:00
Add import to Integration
This commit is contained in:
@@ -52,6 +52,10 @@ class DiscordOAuth2HttpClient(abc.ABC):
|
|||||||
os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = "true"
|
os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = "true"
|
||||||
app.discord = self
|
app.discord = self
|
||||||
|
|
||||||
|
@property
|
||||||
|
def user_id(self):
|
||||||
|
"""A property which returns Discord user ID if it exists in flask :py:attr:`flask.session` object."""
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _token_updater(token):
|
def _token_updater(token):
|
||||||
session["DISCORD_OAUTH2_TOKEN"] = token
|
session["DISCORD_OAUTH2_TOKEN"] = token
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
from .connections import UserConnection
|
from .connections import UserConnection
|
||||||
|
from .integration import Integration
|
||||||
from .user import User, Bot
|
from .user import User, Bot
|
||||||
from .guild import Guild
|
from .guild import Guild
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user