getMessage

open suspend fun getMessage(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.

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

Throws

if something went wrong while retrieving the message.

if the message is null.