Skip to content
Advertisement

Check role that is added guildmemberupdate discordjs

On the event guildmemberupdate, I am trying to see if the event is in my server and if the role is a certain role. If all things are true, it will send a message. It does not send a message though

Here is the code

JavaScript

It doesn’t send ‘test’

Advertisement

Answer

The guildMemberUpdate event requires the server members intent. You can enable it in the Discord Developer Portal, and within your client instantiation

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement