From db26b68fb0bb62049a928b7eceeb8112d9d0582a Mon Sep 17 00:00:00 2001 From: null8626 Date: Mon, 17 Feb 2025 19:11:59 +0700 Subject: [PATCH] feat: remove guilds --- tests/test_type.py | 1 - topgg/types.py | 5 ----- 2 files changed, 6 deletions(-) diff --git a/tests/test_type.py b/tests/test_type.py index 0149e10..4a26fdd 100644 --- a/tests/test_type.py +++ b/tests/test_type.py @@ -21,7 +21,6 @@ "username": "Luca", "date": "2017-04-26T18:08:17.125Z", "server_count": 2, - "guilds": ["417723229721853963", "264445053596991498"], "monthlyPoints": 19, "points": 397, "owners": ["129908908096487424"], diff --git a/topgg/types.py b/topgg/types.py index f3a1c7d..6b94263 100644 --- a/topgg/types.py +++ b/topgg/types.py @@ -94,8 +94,6 @@ def parse_bot_dict(d: dict) -> dict: if data.get("owners"): data["owners"] = [int(e) for e in data["owners"]] - if data.get("guilds"): - data["guilds"] = [int(e) for e in data["guilds"]] for key, value in data.copy().items(): converted_key = camel_to_snake(key) @@ -239,9 +237,6 @@ class BotData(DataDict[str, t.Any]): owners: t.List[int] """The IDs of the owners of the bot.""" - guilds: t.List[int] - """The guilds the bot is in.""" - invite: t.Optional[str] """The invite URL of the bot."""