mirror of
https://github.com/boticord/boticordpy.git
synced 2024-09-22 19:32:01 +03:00
updated MIGRATION guide
This commit is contained in:
parent
94e9e5cdbe
commit
7b27a2dea9
1 changed files with 3 additions and 1 deletions
|
@ -61,9 +61,11 @@ async def get_stats():
|
||||||
### Became:
|
### Became:
|
||||||
```py
|
```py
|
||||||
async def get_stats():
|
async def get_stats():
|
||||||
return {"servers": len(bot.guilds), "shards": 0, "members": len(bot.users)}
|
return {"servers": len(bot.guilds), "shards": None, "members": len(bot.users)}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
p.s. None of the values must be equal to `0`. Specify `None` instead of `0`.
|
||||||
|
|
||||||
## Webhook or websocket... that is the question
|
## Webhook or websocket... that is the question
|
||||||
|
|
||||||
Webhooks are no longer supported in boticordpy. You can find guide how to use boticord websocket [here](https://github.com/boticord/boticordpy/blob/master/examples/websocket.py).
|
Webhooks are no longer supported in boticordpy. You can find guide how to use boticord websocket [here](https://github.com/boticord/boticordpy/blob/master/examples/websocket.py).
|
||||||
|
|
Loading…
Reference in a new issue