From c831adc908f623c8afb768a1006f1d2577b090f2 Mon Sep 17 00:00:00 2001 From: tookender Date: Sat, 4 May 2024 20:45:22 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20debugging.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/ipc/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()