getWebhookMessage abstract method

  1. @GET.new('/webhooks/{webhook_id}/{token}/messages/{message_id}')
Future<MessageResponseSchema> getWebhookMessage({
  1. @Path.new('webhook_id') required SnowflakeType webhookId,
  2. @Path.new('token') required String token,
  3. @Path.new('message_id') required SnowflakeType messageId,
})

Get webhook message.

Retrieves a message previously sent by the webhook. Only messages authored by the webhook can be retrieved.

webhookId - The ID of the webhook.

token - The token.

messageId - The ID of the message.

Implementation

@GET('/webhooks/{webhook_id}/{token}/messages/{message_id}')
Future<MessageResponseSchema> getWebhookMessage({
  @Path('webhook_id') required SnowflakeType webhookId,
  @Path('token') required String token,
  @Path('message_id') required SnowflakeType messageId,
});