getWebhookWithToken

open suspend fun getWebhookWithToken(id: Snowflake, token: String): Webhook(source)

Requests the Webhook with the given id using the token for authentication.

Throws

if something went wrong while retrieving the webhook.

if the webhook was null.