update

suspend fun update(webhook: PatchWebhook): Webhook(source)

Update this webhook.

Return

The updated webhook.

Parameters

webhook

The patched webhook.

Throws


suspend fun update(webhook: PatchWebhook, webhookToken: String): Webhook(source)

Update this webhook using the secure token.

Does not require authentication and does not include the com.jessecorbett.diskord.api.common.User.

Return

The updated webhook, minus the user.

Parameters

webhook

The patched webhook.

Throws