diff options
Diffstat (limited to 'backend/discord.py')
-rw-r--r-- | backend/discord.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/discord.py b/backend/discord.py index 8cb602c..5a4e0fb 100644 --- a/backend/discord.py +++ b/backend/discord.py @@ -1,4 +1,6 @@ """Various utilities for working with the Discord API.""" +import logging + import httpx from backend.constants import ( @@ -7,8 +9,11 @@ from backend.constants import ( API_BASE_URL = "https://discord.com/api/v8" +logger = logging.getLogger(__name__) + async def fetch_bearer_token(code: str, redirect: str, *, refresh: bool) -> dict: + logger.debug(f"Fetching bearer token with code: {code}") async with httpx.AsyncClient() as client: data = { "client_id": OAUTH2_CLIENT_ID, |