Skip to main content

dnd_updated_user event

Do not Disturb settings changed for a member

Facts

Required Scopes
Compatible APIs

Usage info

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

{
"token": "XXYYZZ",
"team_id": "T123ABC456",
"api_app_id": "A123ABC456",
"event": {
"type": "dnd_updated_user",
"user": "U123ABC456",
"dnd_status": {
"dnd_enabled": true,
"next_dnd_start_ts": 1450387800,
"next_dnd_end_ts": 1450423800
}
},
"type": "event_callback",
"authorizations": [
{
"team_id": "T123ABC456",
"user_id": "U123ABC456",
"is_bot": false,
"is_enterprise_install": false,
}
],
"event_id": "Ev123ABC456",
"event_time": 123456789
}

The dnd_updated_user event is sent to all connections for a workspace when a user's Do Not Disturb settings have changed.