In order for your bot to work with Discord Bot Studio you will need to enable intents. To do so visit the following link: https://discord.com/developers/applications.
Once there, click on the bot you are using. Next, select the "Bot" tab from the left hand side:
From there, scroll down to the "Privileged Gateway Intents" section, and enable both options: