This only picks up when the actual bot gets updated and not when other users update
client.on('guildMemberUpdate' ,(oldMember,newMember) => { console.log(oldMember['_roles']) console.log(newMember['_roles']) });
https://discordjs.guide/popular-topics/intents.html
Read through this page - You need to use intents when connecting to the gateway
so
const client = new Discord.Client({ ws: { intents: Discord.Intents.ALL } })
And enable intents on your application's Page (https://i.imgur.com/XtKjFyY.png) enable both.
1.4m articles
1.4m replys
5 comments
57.0k users