updateWebhookWithToken abstract method

  1. @PATCH.new('/webhooks/{webhook_id}/{token}')
Future<WebhookTokenResponse> updateWebhookWithToken({
  1. @Path.new('webhook_id') required SnowflakeType webhookId,
  2. @Path.new('token') required String token,
  3. @Body.new() required WebhookTokenUpdateRequest body,
})

Update webhook with token.

Updates the specified webhook using its ID and token for authentication. Allows modification of name or avatar. Returns the updated webhook object without creator user data.

webhookId - The ID of the webhook.

token - The token.

body - Name not received - field will be skipped.

Implementation

@PATCH('/webhooks/{webhook_id}/{token}')
Future<WebhookTokenResponse> updateWebhookWithToken({
  @Path('webhook_id') required SnowflakeType webhookId,
  @Path('token') required String token,
  @Body() required WebhookTokenUpdateRequest body,
});