Help with setup of Custom Dimensions

Previously my Matomo was using custom variables and now have to switch to Custom dimensions.
Previous:
_paq.push([‘setCustomVariable’, customDimensionId = 1, ‘MemberID’, login.MemberID, ‘visit’);
Now, if I were to switch to setCustomDimension, where should I indicate the login.MemberID and visit scope? Cos the documentation only shows the arguments below:
_paq.push([‘setCustomDimension’, customDimensionId = 1, customDimensionValue = ‘Member’]);