Go to Slack

member_joined_channel event

A user joined a public or private channel

Compatibility: RTM Events API

Scopes:
channels:read, groups:read


{
    "type": "member_joined_channel",
    "user": "W06GH7XHN",
    "channel": "C0698JE0H",
    "channel_type": "C",
    "inviter": "U123456789"
}

The member_joined_channel event is sent to all websocket connections and event subscriptions when users leave public or private channels.

The provided user value is a user ID belonging to the user that joined the channel.

The channel value is the ID for a public channel or private channel (AKA group).

The channel_type value is a single letter indicating the type of channel used in channel:

  • C - typically a public channel
  • G - private channels (or groups) return this channel_type

If the user was invited, the message will include an inviter property containing the user ID of the inviting user. The property will otherwise be absent.

This event is supported as a bot user subscription in the Events API. Team event subscriptions are also available for tokens holding at least one of the channels:read or groups:read scopes. Which events your app will receive depends on the scopes and their context. For instance, you'll only receive member_joined_channel events for private channels if your app has the groups:read permission.

Events API compatibility

Subscribe to this event via the Events API.

Events of this type will be wrapped in metadata when sent via the Events API.