getWebhookWithTokenOrNull

open suspend override fun getWebhookWithTokenOrNull(id: Snowflake, token: String): Webhook?(source)

Requests the Webhook with the given id using the token for authentication, returns null when the webhook isn't present.

Throws

RequestException

if something went wrong while retrieving the webhook.