updateReply method
Future<Interaction>
updateReply({
- String? content,
- List<
EmbedBuilder> ? embeds, - 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;
}