How Can God Be The True Author Of The Bible

Why is God the true author of the Bible when He didn’t actually write it Himself? Could the Bible contain errors since men wrote it?