First, make sure Development Mode is turned on in your Discord profile. To copy the User ID, access your profile in Users Setting and select the 3-dot menu. To construct the Discord profile link, add the 18-digit User ID copied to the last URL.