SlackClientWrapper.UpdateAsync Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
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
A mensagem para atualizar.
- botName
- String
O nome opcional do bot.
- parse
- String
Mude a forma como as mensagens são tratadas. Por defeito, é 'nenhum'. Consulte https://api.slack.com/methods/chat.postMessage#formatting.
- linkNames
- Boolean
Se for para encontrar e ligar nomes de canais e nome de utilizador.
- attachments
- SlackAPI.Attachment[]
Os anexos, se houver.
- asUser
- Boolean
Se a mensagem for enviada como utilizador em vez de como bot.
- cancellationToken
- CancellationToken
Um token de cancelamento para a tarefa.
Devoluções
A SlackAPI.UpdateResponse representa a resposta à operação.