editWebhookMessage abstract method

  1. @PATCH.new('/webhooks/{webhook_id}/{token}/messages/{message_id}')
Future<MessageResponseSchema> editWebhookMessage({
  1. @Path.new('webhook_id') required SnowflakeType webhookId,
  2. @Path.new('token') required String token,
  3. @Path.new('message_id') required SnowflakeType messageId,
  4. @Body.new() required WebhookMessageEditRequest body,
})

Edit webhook message.

Edits a message previously sent by the webhook. Only messages authored by the webhook can be edited. Returns the updated message object.

webhookId - The ID of the webhook.

token - The token.

messageId - The ID of the message.

body - Name not received - field will be skipped.

Implementation

@PATCH('/webhooks/{webhook_id}/{token}/messages/{message_id}')
Future<MessageResponseSchema> editWebhookMessage({
  @Path('webhook_id') required SnowflakeType webhookId,
  @Path('token') required String token,
  @Path('message_id') required SnowflakeType messageId,
  @Body() required WebhookMessageEditRequest body,
});