Search code examples
slack-apislack

How to detect a new user in Slack?


I'm using Slack API and want to detect an event when user first joins a team but cannot find such type of event in docs.

What should I look for?


Solution

  • I think team_join might be the event you're looking for? Depending on whether you need to respond immediately (and the consequences of missing an event if your bot is offline), you might also consider just calling users.list periodically and comparing to the list of already-seen users.