SlackClientWrapper.UpdateAsync Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Wikkelt de UpdateAsync-methode van Slack API in.
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
De tijdstempel van het bericht.
- channelId
- String
Het kanaal om het bericht te verwijderen.
- text
- String
De tekst om mee te updaten.
- botName
- String
De optionele botnaam.
- parse
- String
Verander hoe boodschappen worden behandeld. Standaard staat het op 'geen'. Zie https://api.slack.com/methods/chat.postMessage#formatting.
- linkNames
- Boolean
Als je kanaalnamen en gebruikersnaam kunt vinden en linken.
- attachments
- SlackAPI.Attachment[]
De attachments, als die er zijn.
- asUser
- Boolean
Als het bericht als gebruiker wordt verzonden in plaats van als bot.
- cancellationToken
- CancellationToken
Een annuleringstoken voor de taak.
Retouren
A die SlackAPI.UpdateResponse de reactie op de operatie vertegenwoordigt.