diff --git a/README.md b/README.md index c5287f6..c74e5d8 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ bot = commands.Bot(command_prefix="!") # Function that will return the current bot's stats. async def get_stats(): - return {"guilds": len(bot.guilds), "shards": 0, "members": len(bot.users)} + return {"servers": len(bot.guilds), "shards": 0, "members": len(bot.users)} # Function that will be called if stats are posted successfully. diff --git a/boticordpy/client.py b/boticordpy/client.py index 768919b..51f4e1d 100644 --- a/boticordpy/client.py +++ b/boticordpy/client.py @@ -77,7 +77,7 @@ class BoticordClient: _logger.info("Posting bot stats") response = await self.http.post_bot_stats( - bot_id, {"guilds": servers, "shards": shards, "members": users} + bot_id, {"servers": servers, "shards": shards, "members": users} ) return boticord_types.ResourceBot.from_dict(response) diff --git a/examples/autopost.py b/examples/autopost.py index 1239635..57afe50 100644 --- a/examples/autopost.py +++ b/examples/autopost.py @@ -10,7 +10,7 @@ bot = commands.Bot(command_prefix="!") # Function that will return the current bot's stats. async def get_stats(): - return {"guilds": len(bot.guilds), "shards": 0, "members": len(bot.users)} + return {"servers": len(bot.guilds), "shards": 0, "members": len(bot.users)} # Function that will be called if stats are posted successfully.