editWebhookMessage abstract method
- @PATCH.new('/webhooks/{webhook_id}/{token}/messages/{message_id}')
- @Path.new('webhook_id') required SnowflakeType webhookId,
- @Path.new('token') required String token,
- @Path.new('message_id') required SnowflakeType messageId,
- @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,
});