delete

fun MessageBehavior.delete(millis: Long, retry: Boolean = true): Job

Deletes a message after a delay.

This function does not block.

Return

Job spawned by the CoroutineScope.

Parameters

millis

The delay before deleting the message, in milliseconds.


fun PublicFollowupMessageBehavior.delete(millis: Long, retry: Boolean = true): Job

Deletes a public follow-up after a delay.

This function does not block.

Return

Job spawned by the CoroutineScope.

Parameters

millis

The delay before deleting the message, in milliseconds.