MCPcopy
hub / github.com/LLOneBot/LuckyLilliaBot / error

Method error

src/onebot11/action/OB11Response.ts:24–30  ·  view source on GitHub ↗
(err: string, retcode: number, echo?: unknown)

Source from the content-addressed store, hash-verified

22 }
23
24 static error(err: string, retcode: number, echo?: unknown) {
25 const res = OB11Response.res(null, 'failed', retcode, err)
26 if (!isNullable(echo)) {
27 res.echo = echo
28 }
29 return res
30 }
31}

Callers 15

startHttpSseListeningMethod · 0.80
connectWsMethod · 0.80
attemptReconnectMethod · 0.80
listenEventMethod · 0.80
decodeElementFunction · 0.80
fetchFileMethod · 0.80
handleOneBotRequestMethod · 0.80
registerRoutesMethod · 0.80
parseReactionAddedFunction · 0.80
parseReactionRemovedFunction · 0.80
registerListenerMethod · 0.80

Calls 1

resMethod · 0.80

Tested by

no test coverage detected