discord.js: 'Error: Used disallowed intents'
@devsingh05▲ 13 net votes
The client requested a privileged intent (GuildMembers, GuildPresences or MessageContent) that is not switched on for the application. Enable it in the Developer Portal under Bot > Privileged Gateway Intents, or remove it from the intents array in new Client({ intents: [...] }). Bots in 100+ servers need Discord's approval for these, but a hackathon bot can just toggle them.