Commit bf66870
committed
feat: allow bot http to be used as a context manager
example:
```python
async with Client(token=os.environ["TOKEN"]) as bot:
print("Logged in as", bot.user)
data = await bot.http.get_gateway_bot()
print(data)
```1 parent cf272da commit bf66870
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
419 | 431 | | |
420 | 432 | | |
421 | 433 | | |
| |||
0 commit comments