Discord.js - guildMemberUpdate not being called except on Bot user changes

Viewed 3168

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
    }
  }
})
1 Answers
Related