updated MIGRATION guide

This commit is contained in:
grey-cat-1908 2023-08-06 09:30:22 +03:00
parent 94e9e5cdbe
commit 7b27a2dea9

View file

@ -61,9 +61,11 @@ async def get_stats():
### Became:
```py
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
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).