src/Api/Rooms.php
public function remove(Room $room, $actionType)
    {
        if ('leave' !== $actionType && 'delete' !== $actionType) {
            throw new InvalidArgumentException('ActionType is only leave or delete');
        }

        $this->client->delete(
            "rooms/{$room->roomId}",
            [
                'action_type' => $actionType,
            ]
        );
    }
public function remove(Room $room, $actionType)
    {
        if ('leave' !== $actionType && 'delete' !== $actionType) {
            throw new InvalidArgumentException('ActionType is only leave or delete');
        }

        $this->client->delete(
            "rooms/{$room->roomId}",
            [
                'action_type' => $actionType,
            ]
        );
    }
グループチャットを退席/削除する.

@param Room   $room
@param string $actionType leave or delete

@throws InvalidArgumentException