Lingua

SlackClientWrapper.UpdateAsync Metodo

Definizione

Racchiude il metodo UpdateAsync dell'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)

Parametri

ts
String

Timestamp del messaggio.

channelId
String

Il canale da cui cancellare il messaggio.

text
String

Il testo da aggiornare.

botName
String

Il nome opzionale del bot.

parse
String

Cambia il modo in cui vengono trattati i messaggi. Di default è 'nessuno'. Vedete https://api.slack.com/methods/chat.postMessage#formatting.

linkNames
Boolean

Se vuoi trovare e collegare i nomi dei canali e il nome utente.

attachments
SlackAPI.Attachment[]

Gli attaccamenti, se ce ne sono.

asUser
Boolean

Se il messaggio viene inviato come utente invece che come bot.

cancellationToken
CancellationToken

Un gettone di cancellazione per il compito.

Valori restituiti

A rappresenta SlackAPI.UpdateResponse la risposta all'operazione.

Si applica a