Search code examples
slackslack-api

Which scope for bot direct message?


I've successfully created a slack bot, with the following scopes: app_mentions:read, chat:write, im:read, incoming-webhook.

The bot reacts to app mentions in channels, but not on direct (private) messages. Am I missing a scope?


Solution

  • To whom will come after: you need to subscribe to the message.im bot event in order to be notified of DMs.