Discord Intents discord.js

Tags: , ,



I am trying to use this –

new Discord.Client({ws:{intents: [Intents.FLAGS.GUILD_PRESENCES]}});

I am experiencing issues. See the attached image. Anyone know what wrong? Thanks!

Answer

You haven’t defined the Intents it –

new Discord.Client({ws:{intents: [Discord.Intents.FLAGS.GUILD_PRESENCES]}})


Source: stackoverflow