mirror of
https://github.com/boticord/boticordpy.git
synced 2024-09-22 19:32:01 +03:00
migration guide
This commit is contained in:
parent
b4a7f36126
commit
41630e6088
1 changed files with 14 additions and 0 deletions
14
MIGRATION.md
14
MIGRATION.md
|
@ -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).
|
||||||
|
|
Loading…
Reference in a new issue