diff --git a/extensions/ipc/__init__.py b/extensions/ipc/__init__.py index 14c6a74..3be60ca 100644 --- a/extensions/ipc/__init__.py +++ b/extensions/ipc/__init__.py @@ -20,8 +20,9 @@ async def ping(self, _) -> Response: async def bot_guilds(self, request: Request) -> Response: data = await request.json() - - return json_response({"data": data}) + valid_guilds = [guild for guild in data if self.bot.get_guild(guild["id"])] + + return json_response({"guilds": valid_guilds}) async def _start(self): await self.bot.wait_until_ready()