updateWebhook abstract method

  1. @PATCH.new('/webhooks/{webhook_id}')
Future<WebhookResponse> updateWebhook({
  1. @Path.new('webhook_id') required SnowflakeType webhookId,
  2. @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,
});