#Reacting to discord events
1 messages · Page 1 of 1 (latest)
Creating Your Bot: Event handling
If you've followed the guide up to this point, your index.js file will have listeners for two events: ClientReady and InteractionCreate.
read more
You can put it into index if your code is short, or make individual event files for longer codes.
Event you‘re looking for is this:
(event) Client#guildMemberAdd
Emitted whenever a user joins a guild.
Popular Topics: Administrative - How do I add a role to a guild member?
read more