Documentation
Classes
discord-player
PlayerError

PlayerError extends Error

new PlayerError(message, code)
ParameterTypeOptionalDescription
messagestring-
codeErrorStatusCode-

Properties

public createdAt: Date

public message: string

public name: string

  • Source: node_modules/typescript/lib/lib.es5.d.ts#L1053

public stack: string

  • Source: node_modules/typescript/lib/lib.es5.d.ts#L1055

public statusCode: ErrorStatusCode

public static prepareStackTrace: (err: Error, stackTraces: Array<CallSite>) => any

  • Source: node_modules/@types/node/globals.d.ts#L11

public static stackTraceLimit: number

  • Source: node_modules/@types/node/globals.d.ts#L13

public createdTimestamp: number

Methods

public toJSON(): { code: ErrorStatusCode,created: number,message: string,stack: undefined | string }

public toString(): undefined | string

public valueOf(): ErrorStatusCode

public static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

ParameterTypeOptionalDescription
targetObjectobject-
constructorOptFunction-
  • Source: node_modules/@types/node/globals.d.ts#L4