deleteMessage

open suspend fun deleteMessage(token: String, messageId: Snowflake, threadId: Snowflake? = null)(source)

Requests to delete the Message with the given messageId previously sent from this webhook using the token for authentication.

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

Throws

if something went wrong during the request.