Current section
Files
Jump to
Current section
Files
priv/docs/methods/chat.deleteScheduledMessage.json
{
"args": {
"as_user": {
"desc": "Pass true to delete the message as the authed user with `chat:write:user` scope. Bot users in this context are considered authed users. If unused or false, the message will be deleted with `chat:write:bot` scope.",
"example": "true",
"required": false,
"type": "boolean"
},
"channel": {
"desc": "The channel the scheduled\\_message is posting to",
"example": "C123456789",
"required": true,
"type": "string"
},
"scheduled_message_id": {
"desc": "`scheduled_message_id` returned from call to chat.scheduleMessage",
"example": "Q1234ABCD",
"required": true,
"type": "string"
}
},
"desc": "Deletes a pending scheduled message from the queue.",
"errors": {
"bad_token": "The provided `token` was invalid.",
"channel_not_found": "The `channel` passed is either an invalid ID or does not exist.",
"invalid_scheduled_message_id": "The `scheduled_message_id` passed is either an invalid ID, or the scheduled message it's referencing has already been sent or deleted."
},
"rate_limit": {
"label": "Tier 3: 50+ per minute",
"url": "https://docs.slack.dev/apis/web-api/rate-limits"
},
"scopes": {
"bot": [
{
"name": "chat:write",
"url": "https://docs.slack.dev/reference/scopes/chat.write"
}
],
"user": [
{
"name": "chat:write",
"url": "https://docs.slack.dev/reference/scopes/chat.write"
}
]
}
}