SlackClientWrapper.UpdateAsync(String, String, String, String, String, Boolean, Attachment[], Boolean, CancellationToken) Method

Definition

Wraps Slack API's UpdateAsync method.

public virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.Adapters.Slack.Model.SlackResponse> UpdateAsync (string ts, string channelId, string text, string botName = default, string parse = default, bool linkNames = false, SlackAPI.Attachment[] attachments = default, bool asUser = false, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : string * string * string * string * string * bool * SlackAPI.Attachment[] * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Adapters.Slack.Model.SlackResponse>
override this.UpdateAsync : string * string * string * string * string * bool * SlackAPI.Attachment[] * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Adapters.Slack.Model.SlackResponse>
Public Overridable Function UpdateAsync (ts As String, channelId As String, text As String, Optional botName As String = Nothing, Optional parse As String = Nothing, Optional linkNames As Boolean = false, Optional attachments As Attachment() = Nothing, Optional asUser As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SlackResponse)

Parameters

ts
String

The timestamp of the message.

channelId
String

The channel to delete the message from.

text
String

The text to update with.

botName
String

The optional bot name.

parse
String

Change how messages are treated.Defaults to 'none'. See https://api.slack.com/methods/chat.postMessage#formatting.

linkNames
Boolean

If to find and link channel names and username.

attachments
SlackAPI.Attachment[]

The attachments, if any.

asUser
Boolean

If the message is being sent as user instead of as a bot.

cancellationToken
CancellationToken

A cancellation token for the task.

Returns

Task<SlackResponse>

A SlackAPI.UpdateResponse representing the response to the operation.

Applies to