T

NativePlatformCrashGuard

The loader's record of which addon was starting or running when Discord crashed, kept across launches.

type NativePlatformCrashGuard = { … }

Members

activity(): ArrayBuffer | undefined

Returns a 4-byte buffer shared with the loader that holds the running addon's slot, or undefined when unavailable.

begin(id: string, name: string): boolean

Marks an addon as starting, by crash guard key and display name, so a crash during its start is blamed on it.

Lists the addons the loader disabled after crashes on consecutive launches.

end(id: string): boolean

Clears the start marker once the addon's start has returned.

register(id: string, name: string): number

Registers an addon for crash attribution and returns its slot, or 0 when the loader cannot attribute crashes.