From 7b27a2dea9317571311c698c6e82d330e41bcd99 Mon Sep 17 00:00:00 2001 From: grey-cat-1908 Date: Sun, 6 Aug 2023 09:30:22 +0300 Subject: [PATCH] updated MIGRATION guide --- MIGRATION.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MIGRATION.md b/MIGRATION.md index 7c1a676..98672a2 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -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).