Skip to content

Commit 8064304

Browse files
committed
📝 Add Async section in README.md
1 parent 0389a33 commit 8064304

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ I've finally published the library to PyPi! So now you can use pip.
1212
```
1313
pip install discord-oauth2.py
1414
```
15+
1516
### Example With Flask
1617
Don't forget to replace all the client information with your application's own information. You can leave bot token empty if your not adding members to guilds.
1718
```py
@@ -57,3 +58,6 @@ def oauth2():
5758

5859
app.run("0.0.0.0", 8080)
5960
```
61+
62+
### Async usage
63+
Asynchronous usage is also supported, you can use the async version of the library by importing `discordoauth2.AsyncClient` instead of `discordoauth2.Client`. The methods are the same, but they’re coroutines.

0 commit comments

Comments
 (0)