'Is there a way to detect a new user joining a discord server when logged in via Discord.JS as a user account?

I am wondering if there is a way to detect a new user joining a discord server when logged in via Discord.JS as a user account?

I tried guildmemberadd listener but that only appears to work for Bot accounts.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source