start method

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

Starts the Discord Rich Presence.

Implementation

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