As said by Jakye, you now must use intents. On the developer portal, select your project, and under bot tab, you’ll need to tick the intents. Note it’s more complicated for bots in over 100 guilds, but from what I’ve seen I don’t think you’re near that yet.
CLICK HERE to find out more related problems solutions.