Slack.Web.Chat.update
You're seeing just the function
update, go back to Slack.Web.Chat module for more information.
Updates a message.
Required Params
channel- Channel containing the message to be updated.text- New text for the message, using the default formatting rules. ex:Hello worldts- Timestamp of the message to be updated. ex:1405894322.002768
Optional Params
as_user- Pass true to update the message as the authed user. Bot users in this context are considered authed users. ex:trueattachments- Structured message attachments. ex:[{"pretext": "pre-hello", "text": "text-world"}]link_names- Find and link channel names and usernames. Defaults tonone. This parameter should be used in conjunction withparse. To setlink_namesto1, specify aparsemode offull. ex:1parse- Change how messages are treated. Defaults toclient, unlikechat.postMessage. See below. ex:none
Errors the API can return:
cant_update_message- Authenticated user does not have permission to update this message.channel_not_found- Value passed forchannelwas invalid.edit_window_closed- The message cannot be edited due to the team message edit settingsmessage_not_found- No message exists with the requested timestamp.msg_too_long- Message text is too longno_text- No message text provided