With the following code, the guildMemberUpdate event does not call for any user modification at all except for the bot user. What could have caused this change, and how do I troubleshoot this?
VSC with latest npm install of discord.js. Enabled the gateway intents on Discord, too.
client.on('guildMemberUpdate', (oldMember, newMember) => {
// Fire if user has a role
if (newMember.roles.cache.some(r => r.name === "TEST_ROLE")) {
try {
// stuff
} catch(err) {
// stuff
}
}
})
