D002: You are requesting a privileged intent you have not also requested for in the console. Check that you have requested the intents in the Developer Console.
This error occurs when you are requesting a privileged intent within Piecewise, but not in the Developer Console.
If your bot is in more than 100 servers, you’ll need to contact Discord Support to request access to privileged intents. Otherwise, you can adjust privileged intents within the Discord console.
Matches exception with text:
Privileged intent provided is not enabled or whitelisted