migration guide

This commit is contained in:
MadCat9958 2023-07-01 13:46:01 +03:00
parent b4a7f36126
commit 41630e6088

View file

@ -50,6 +50,20 @@ autopost = (
) )
``` ```
Also, JSON's keys for bot stats must be changed:
### Was:
```py
async def get_stats():
return {"servers": len(bot.guilds), "shards": 0, "users": len(bot.users)}
```
### Became:
```py
async def get_stats():
return {"guilds": len(bot.guilds), "shards": 0, "members": len(bot.users)}
```
## 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).