updateReply method

Future<Interaction> updateReply({
  1. String? content,
  2. List<EmbedBuilder>? embeds,
  3. List<RowBuilder>? components,
})

Edit original response to interaction

Implementation

Future<Interaction> updateReply({ String? content, List<EmbedBuilder>? embeds, List<RowBuilder>? components }) async {
  await ioc.use<HttpService>().patch(url: "/webhooks/$applicationId/$token/messages/@original", payload: {
    'content': content,
    'embeds': embeds != null ? embeds.map((e) => e.toJson()).toList() : [],
    'components': components != null ? components.map((e) => e.toJson()).toList() : [],
  });

  return this;
}