It depends if the CRM is enabled in your guild or not. If yes, you can export lists of member addresses based on their roles using Guild's Member Exporter in the Member page of the Admin Dashboard.
You can find more information in the Export Guide article.