getWebhook

open suspend fun getWebhook(id: Snowflake): Webhook(source)

Requests the Webhook with the given id.

Throws

if something went wrong while retrieving the webhook.

if the webhook was null.