I know there's a function to change the width of a line but I can't find it.
To change the width of a line in Illustrator, you can use the "Stroke" panel or the "Stroke" options in the top toolbar.