start method

void start({
  1. bool autoRegister = false,
})

Starts the Discord Rich Presence.

Implementation

void start({bool autoRegister = false}) {
  _bindings.Discord_Initialize(
      applicationId.toNativeUtf8(),
      calloc<ffi.DiscordEventHandlers>(),
      autoRegister == false ? 0 : 1,
      (steamId ?? '').toNativeUtf8());
}