delete

open suspend fun delete(reason: String? = null)(source)

Requests to delete this message.

Parameters

reason

the reason showing up in the audit log

Throws

if something went wrong during the request.


open suspend fun delete(webhookId: Snowflake, token: String, threadId: Snowflake? = null)(source)

Requests to delete this message if it was previously sent from a Webhook with the given webhookId using the token for authentication.

If this message is in a thread, threadId must be specified.

Throws

if something went wrong during the request.