remove Failed Messages
fun <T : BaseChannel> BaseMessageCollection<T>.removeFailedMessages(failedMessages: List<BaseMessage>, handler: ResultHandler<List<String>>?)
Remove specific failed messages of this BaseMessageCollection
Since
4.15.0
Parameters
failed Messages
failed messages that want to remove
handler
ResultHandler used in providing the removal results
suspend fun <T : BaseChannel> BaseMessageCollection<T>.removeFailedMessages(failedMessages: List<BaseMessage>): List<String>
Deprecated
As of 4.17.0, replaced with awaitRemoveFailedMessages(failedMessages).
Replace with
awaitRemoveFailedMessages(failedMessages)
Content copied to clipboard
Remove specific failed messages of this BaseMessageCollection
Return
The list of removed message's ids.
Since
4.15.0
Parameters
failed Messages
failed messages that want to remove