View another event... accounts_changed app_home_opened app_mention app_rate_limited app_requested app_uninstalled bot_added bot_changed call_rejected channel_archive channel_created channel_deleted channel_history_changed channel_joined channel_left channel_marked channel_rename channel_shared channel_unarchive channel_unshared commands_changed dnd_updated dnd_updated_user email_domain_changed emoji_changed external_org_migration_finished external_org_migration_started file_change file_comment_added file_comment_deleted file_comment_edited file_created file_deleted file_public file_shared file_unshared goodbye grid_migration_finished grid_migration_started group_archive group_close group_deleted group_history_changed group_joined group_left group_marked group_open group_rename group_unarchive hello im_close im_created im_history_changed im_marked im_open invite_requested link_shared manual_presence_change member_joined_channel member_left_channel message message.app_home message.channels message.groups message.im message.mpim pin_added pin_removed pref_change presence_change presence_query presence_sub reaction_added reaction_removed reconnect_url resources_added resources_removed scope_denied scope_granted star_added star_removed subteam_created subteam_members_changed subteam_self_added subteam_self_removed subteam_updated team_access_granted team_access_revoked team_domain_change team_join team_migration_started team_plan_change team_pref_change team_profile_change team_profile_delete team_profile_reorder team_rename tokens_revoked url_verification user_change user_resource_denied user_resource_granted user_resource_removed user_typing workflow_deleted workflow_published workflow_step_deleted workflow_step_execute workflow_unpublished
member_left_channel event A user left a public or private channel
Compatibility:Â RTM Â Events API
{
"type": "member_left_channel",
"user": "W06GH7XHN",
"channel": "C0698JE0H",
"channel_type": "C",
"team": "T024BE7LD"
}
The member_left_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
The team
identifies which workspace the user is from.
This event is supported as a bot user subscription in the Events API . Workspace 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_left_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.