Partilhar via


SlackClientWrapper.UpdateAsync Método

Definição

Molda o método UpdateAsync da API 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 a partir do qual eliminar a mensagem.

text
String

O texto a atualizar.

botName
String

O nome do bot opcional.

parse
String

Alterar a forma como as mensagens são tratadas. A predefinição é "nenhuma". Consulte https://api.slack.com/methods/chat.postMessage#formatting.

linkNames
Boolean

Se pretender localizar e ligar nomes de canal e nome de utilizador.

attachments
SlackAPI.Attachment[]

Os anexos, se existirem.

asUser
Boolean

Se a mensagem estiver a ser enviada como utilizador em vez de como um bot.

cancellationToken
CancellationToken

Um token de cancelamento para a tarefa.

Devoluções

Um SlackAPI.UpdateResponse que representa a resposta à operação.

Aplica-se a