Skip to content

Commit ffce687

Browse files
committed
docs: Documented OAuth2Client.start
1 parent 73ebd83 commit ffce687

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

discord/oauth2/client.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,13 @@ def setup_logging(
350350
)
351351

352352
async def start(self) -> Self:
353+
"""|coro|
354+
355+
Starts the client. This will start the internal HTTP client and call the :attr:`on_startup` event.
356+
357+
.. important::
358+
This must be called before any other requests are made.
359+
"""
353360
self.setup_logging()
354361

355362
if not self.loop:

0 commit comments

Comments
 (0)