Skip to main content

channel_convert_to_private message

This channel was made private. Now, it can only be viewed or joined by invitation

Facts

Compatible APIs

Usage info​

This example includes both the event wrapper and the event structure for the channel_convert_to_private message subtype event.

{
"token": "XXYYZZ",
"team_id": "T123ABC456",
"api_app_id": "A123ABC456",
"event": {
"subtype": "channel_convert_to_private",
"user": "U1234ABCD",
"text": "made this channel *private*. Now, it can only be viewed or joined by invitation.",
"type": "message",
"ts": "1730984822.596869",
"channel": "C1234ABCD",
"event_ts": "1730984822.596869",
"channel_type": "group"
},
"type": "event_callback",
"authorizations": [
{
"team_id": "T123ABC456",
"user_id": "U1234ABCD",
"is_bot": false,
"is_enterprise_install": false,
}
],
"event_id": "Ev123ABC456",
"event_time": 123456789
}

A channel_convert_to_private message is sent when a channel is made private. Now, it can only be viewed or joined by invitation.