updateWebhook abstract method
- @PATCH.new('/webhooks/{webhook_id}')
- @Path.new('webhook_id') required SnowflakeType webhookId,
- @Body.new() required WebhookUpdateRequest body,
Update webhook.
Updates the specified webhook with new settings such as name, avatar, or target channel. All fields are optional. Returns the updated webhook object.
webhookId - The ID of the webhook.
body - Name not received - field will be skipped.
Implementation
@PATCH('/webhooks/{webhook_id}')
Future<WebhookResponse> updateWebhook({
@Path('webhook_id') required SnowflakeType webhookId,
@Body() required WebhookUpdateRequest body,
});