SlackClientWrapper.DeleteMessageAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Wraps Slack API's DeleteMessageAsync method.
public virtual System.Threading.Tasks.Task<SlackAPI.DeletedResponse> DeleteMessageAsync (string channelId, DateTime ts, System.Threading.CancellationToken cancellationToken);
abstract member DeleteMessageAsync : string * DateTime * System.Threading.CancellationToken -> System.Threading.Tasks.Task<SlackAPI.DeletedResponse>
override this.DeleteMessageAsync : string * DateTime * System.Threading.CancellationToken -> System.Threading.Tasks.Task<SlackAPI.DeletedResponse>
Public Overridable Function DeleteMessageAsync (channelId As String, ts As DateTime, cancellationToken As CancellationToken) As Task(Of DeletedResponse)
Parameters
- channelId
- String
The channel to delete the message from.
- ts
- DateTime
The timestamp of the message.
- cancellationToken
- CancellationToken
A cancellation token for the task.
Returns
Task<SlackAPI.DeletedResponse>
A SlackAPI.DeletedResponse representing the response to deleting the message.