Build 586984stable
Module 38405
1,817 characters · in no known chunkDependencies
Required by (90)
146441062762031498394184467245787743968068283257103407107563111162115184163512171076174459185237199940201718260447280450280889293246311849326084328009335542352043352774366999382483392553404851407315410516411153418126428644430795447952450827453903464477469802470214473145480335521981532255557637578152615658642489645320645582651663655098655404655758669953670735682618710969724066739508764336768463768947772167777334786953794364795791808247811611814278859703881328881615908742927815935671940227945960946261952719957565958805996308
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>c});var i=n(668279),r=n(39304),a=n(228366);function s(e){return{...e,extra:{...e?.extra,...{...null!=a.h._currentDispatchActionType?{currentAction:a.h._currentDispatchActionType}:{},lastFewActions:(0,r.lK)()}}}}var l=n(723702),o=n(19575);function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l.isPlatformEmbedded&&o.Ay.updateCrashReporter({user_id:e.id??"",username:e.username??"",email:e.email??"",sentry:{user:{id:e.id??"",username:e.username??"",email:e.email??""}}})}let c={setUser(e,t,n,i){let r={id:e,username:t,email:n,staff:i};window.DiscordSentry?.getCurrentScope().setUser(r),d(r)},clearUser(){window.DiscordSentry?.getCurrentScope().setUser(null),d()},setTags(e){window.DiscordSentry?.getCurrentScope().setTags(e)},setExtra(e){window.DiscordSentry?.getCurrentScope().setExtras(e)},captureException(e,t){let n,i=s(t);return window.DiscordSentry?.withScope(t=>{null!=i.tags&&t.setTags(i.tags),t.setExtras(i.extra),n=window.DiscordSentry?.captureException(e)}),n},captureCrash(e,t){let n,i=s(t);return window.DiscordSentry?.withScope(t=>{t.setExtras(i.extra),t.setTag("crash","true"),t.setLevel("fatal"),t.addEventProcessor(e=>{let t=e.exception?.values?.[0];return null!=t&&(t.mechanism={...t.mechanism,handled:!1}),e}),n=window.DiscordSentry?.captureException(e)}),n},captureMessage(e,t){let n=s(t);window.DiscordSentry?.withScope(t=>{null!=n.tags&&t.setTags(n.tags),t.setExtras(n.extra),window.DiscordSentry?.captureMessage(e)})},addFeatureFlag(e,t){let n=window.DiscordSentry?.getClient?.(),i=n?.getIntegrationByName?.("FeatureFlags");i?.addFeatureFlag?.(e,t)},addBreadcrumb(e){(0,i.A)(e)},profiledRootComponent:e=>e,crash(){throw Error("crash")},triggerMemoryWarning(){},markCrashHandled(e){},getLastCrashReport:()=>Promise.resolve(null)}}