Skip to main content

Class: MediaParser

api/src.MediaParser

Hierarchy

  • Piece

    MediaParser

Constructors

constructor

new MediaParser(context, options?)

Parameters

NameType
contextPieceContext
options?PieceOptions

Inherited from

Piece.constructor

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:452

Properties

enabled

enabled: boolean

Inherited from

Piece.enabled

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:447


location

Readonly location: PieceLocation

Inherited from

Piece.location

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:439


name

Readonly name: string

Inherited from

Piece.name

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:443


options

Readonly options: PieceOptions

Inherited from

Piece.options

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:451


store

Readonly store: Store<Piece<PieceOptions>>

Inherited from

Piece.store

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:435

Accessors

container

get container(): Container

Returns

Container

Inherited from

Piece.container

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:457

Methods

accepts

accepts(route): boolean

Parameters

NameTypeDescription
routeRoute

Returns

boolean

Defined in

projects/plugins/packages/api/src/lib/structures/MediaParser.ts:24


contentStream

Protected contentStream(request): null | ApiRequest | Gunzip

Parameters

NameTypeDescription
requestApiRequest

Returns

null | ApiRequest | Gunzip

Defined in

projects/plugins/packages/api/src/lib/structures/MediaParser.ts:63


onLoad

onLoad(): unknown

Returns

unknown

Inherited from

Piece.onLoad

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:462


onUnload

onUnload(): unknown

Returns

unknown

Inherited from

Piece.onUnload

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:467


readBuffer

Protected readBuffer(request): Promise<Buffer>

Parameters

NameTypeDescription
requestApiRequest

Returns

Promise<Buffer>

Defined in

projects/plugins/packages/api/src/lib/structures/MediaParser.ts:48


readString

Protected readString(request): Promise<string>

Parameters

NameTypeDescription
requestApiRequest

Returns

Promise<string>

Defined in

projects/plugins/packages/api/src/lib/structures/MediaParser.ts:33


reload

reload(): Promise<void>

Returns

Promise<void>

Inherited from

Piece.reload

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:475


run

Abstract run(request): unknown

Parameters

NameType
requestApiRequest

Returns

unknown

Defined in

projects/plugins/packages/api/src/lib/structures/MediaParser.ts:17


toJSON

toJSON(): PieceJSON

Returns

PieceJSON

Inherited from

Piece.toJSON

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:479


unload

unload(): Promise<void>

Returns

Promise<void>

Inherited from

Piece.unload

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:471