Skip to main content

getErrorCodeFromStreamError

amiudmodz


amiudmodz / getErrorCodeFromStreamError

Function: getErrorCodeFromStreamError()

getErrorCodeFromStreamError(node): object

Defined in: src/Utils/generics.ts:364

Stream errors generally provide a reason, map that to a baileys DisconnectReason

Parameters​

node​

BinaryNode

Returns​

object

reason​

reason: string

statusCode​

statusCode: number