Add queryGroupSlots method

This commit is contained in:
2025-03-14 01:36:19 +01:00
parent b464b1ac2d
commit c85e36f1cb

View File

@ -123,6 +123,19 @@ class SlotDbClient
return $data;
}
/**
* Return slots and properties from members of $groupId
*
* @param string $groupId
* @return array<string,mixed>
*/
public function queryGroupSlots(string $groupId): array
{
$res = $this->get("/group/{$groupId}/members");
$data = json_decode($res->getBody(), true);
return $data;
}
public function updateGroup(string $groupId, array $props): array
{
$res = $this->post("/group/{$groupId}", $props);