Skip to content

Commit

Permalink
πŸ› debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
tookender committed May 4, 2024
1 parent 0e17948 commit c831adc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions extensions/ipc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c831adc

Please sign in to comment.