executeStored

inline suspend fun Webhook.executeStored(threadId: Snowflake? = null, builder: WebhookMessageCreateBuilder.() -> Unit): Message

Execute this webhook using the token stored within the object. If threadId is provided, execute the webhook in that thread.

Note: We will deprecate and remove this function if Kord implements their own.

Return

The newly-created Message.

Throws

if the webhook object doesn't contain a token.

RestRequestException

if something went wrong during the request.