delete method

Future<void> delete()

Delete original response to interaction

Example :

await interaction.reply(content: 'Foo', private: true);

await Future.delayed(Duration(seconds: 5), () async => {
  await interaction.delete();
});

Implementation

Future<void> delete () async {
  String mid = message?.id ?? "@original";

  await ioc.use<DiscordApiHttpService>()
      .destroy(url: "/webhooks/$applicationId/$token/messages/$mid")
      .build();
}