deleteWebhookMessage abstract method
- @DELETE.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,
Delete webhook message.
Deletes a message previously sent by the webhook. Only messages authored by the webhook can be deleted. Returns a 204 status code on successful deletion.
webhookId - The ID of the webhook.
token - The token.
messageId - The ID of the message.
Implementation
@DELETE('/webhooks/{webhook_id}/{token}/messages/{message_id}')
Future<void> deleteWebhookMessage({
@Path('webhook_id') required SnowflakeType webhookId,
@Path('token') required String token,
@Path('message_id') required SnowflakeType messageId,
});