deferredReply method

Future<Interaction> deferredReply({
  1. bool private = false,
})

Responds to this by a deferred Message (Show a loading state to the user)

Implementation

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

  return this;
}