editResponse method

Future editResponse(
  1. String applicationId, {
  2. required String token,
  3. required InteractionApplicationCommandCallbackData data,
})

Implementation

Future editResponse(
  String applicationId, {
  required String token,
  required InteractionApplicationCommandCallbackData data,
}) {
  var endpoint = '/webhooks/$applicationId/$token/messages/@original';
  return _http.request(
    endpoint,
    converter: _http.asNull,
    method: 'patch',
    body: data.toJson()..filterNullValues(),
  );
}