Skip to main content

bot_changed event

A bot user was changed

Facts

Required Scopes
No scopes required!
Compatible APIs

Usage info

This example includes both the event wrapper and the event structure for the bot_changed event.

{
"token": "XXYYZZ",
"team_id": "T123ABC456",
"api_app_id": "A123ABC456",
"event": {
"type": "bot_changed",
"bot": {
"id": "B024BE7LH",
"app_id": "A4H1JB4AZ",
"name": "hugbot",
"icons": {
"image_48": "https://slack.com/path/to/hugbot_48.png"
}
}
},
"type": "event_callback",
"authed_users": [
"U123ABC456",
"U222222222"
],
"event_id": "Ev123ABC456",
"event_time": 123456789
}

The bot_changed event is sent to all connections for a workspace when an integration "bot" is updated. Clients can use this to update their local list of bots. If the bot belongs to a Slack app, the event will also include an app_id pointing to its parent app.