retrieveWebhookByIdOrNull

suspend fun JDA.retrieveWebhookByIdOrNull(webhookId: Long): Webhook?(source)

Retrieves a Webhook from the provided ID, see JDA.retrieveWebhookById for more details.

Throws the same exceptions as JDA.retrieveWebhookById, minus ErrorResponse.UNKNOWN_WEBHOOK.

See also