getMessageOrNull

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

Requests the Message with the given messageId previously sent from this webhook using the token for authentication, returns null when the message isn't present.

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

Throws

if something went wrong while retrieving the message.