noReply method

Future<void> noReply({
  1. bool private = false,
})

Shows no response (and error)

Example :

await interaction.noReply();

Implementation

Future<void> noReply ({ bool private = false }) async {
  await ioc.use<DiscordApiHttpService>().post(url: "/interactions/$id/$token/callback")
      .payload({
        'type': InteractionCallbackType.deferredUpdateMessage.value,
        'data': {
          'flags': private ? 1 << 6 : null
        }
      }).build();
}