SlackClientWrapper.UpdateAsync Método

Definição

Envolve o método UpdateAsync da API do Slack.

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)

Parâmetros

ts
String

O carimbo de data/hora da mensagem.

channelId
String

O canal para apagar a mensagem.

text
String

O texto para atualizar.

botName
String

O nome opcional do bot.

parse
String

Mude a forma como as mensagens são tratadas. O padrão é 'nenhum'. Consulte https://api.slack.com/methods/chat.postMessage#formatting.

linkNames
Boolean

Se for para encontrar e vincular nomes de canais e nome de usuário.

attachments
SlackAPI.Attachment[]

Os anexos, se houver.

asUser
Boolean

Se a mensagem estiver sendo enviada como usuário em vez de como bot.

cancellationToken
CancellationToken

Um token de cancelamento para a tarefa.

Retornos

A SlackAPI.UpdateResponse representando a resposta à operação.

Aplica-se a