getWebhookMessage abstract method
- @GET.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,
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,
});