Error CS0234: The type or namespace name 'AudioModule' does not exist in 'UnityEngine'

Build: Unity 2019.4.3f1
Platform: Windows
Coder: Visual Studio

Ran into this issue today and I’ve tried multiple things to no avail. Things I have tried:
Restarting Unity
Restarting Visual Studio
Reimporting project

When I open the code in visual studio code it doesn’t give me auto-complete for things that should be in UnityEngine like AudioClip.

Full Error: error CS0234: The type or namespace name ‘AudioModule’ does not exist in the namespace ‘UnityEngine’ (are you missing an assembly reference?)

Fixed it by linking visual studio editor to Unity.

AudioModule is also not a thing anymore, its just UnityEngine.Audio

Thanks Richard! <3 Saved me a headache.