/// <summary> /// Delete a chat message that you previously sent to a channel that you are a member of. /// </summary> /// <param name="chatResource">The chat resource.</param> /// <param name="messageId">The unique identifier of the message.</param> /// <param name="channelId">The unique identifier of the channel.</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns> /// The async task. /// </returns> public static Task DeleteMessageToChannelAsync(this IChat chatResource, string messageId, string channelId, CancellationToken cancellationToken = default) { return(chatResource.DeleteMessageToChannelAsync(messageId, "me", channelId, cancellationToken)); }