T
NativePlatformCrashGuard
The loader's record of which addon was starting or running when Discord crashed, kept across launches.
type NativePlatformCrashGuard = { … }Members
activity
(): ArrayBuffer | undefinedReturns a 4-byte buffer shared with the loader that holds the running addon's slot, or undefined when unavailable.
begin
(id: string, name: string): booleanMarks 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): booleanClears the start marker once the addon's start has returned.
register
(id: string, name: string): numberRegisters an addon for crash attribution and returns its slot, or 0 when the loader cannot attribute crashes.