Skip to main content

Class: RouteData

@sapphire/plugin-api.RouteData

Constructors

constructor

โ€ข new RouteData(path)

Parameters

NameType
pathstring

Defined in

projects/plugins/packages/api/src/lib/utils/RouteData.ts:25

Properties

parts

โ€ข Private Readonly parts: readonly ParsedPart[]

Defined in

projects/plugins/packages/api/src/lib/utils/RouteData.ts:23


path

โ€ข Readonly path: string

Defined in

projects/plugins/packages/api/src/lib/utils/RouteData.ts:21


static

โ€ข Private Readonly static: boolean

Defined in

projects/plugins/packages/api/src/lib/utils/RouteData.ts:22

Methods

match

โ–ธ match(split): MatchData

Parameters

NameType
splitreadonly string[]

Returns

MatchData

Defined in

projects/plugins/packages/api/src/lib/utils/RouteData.ts:31


parsePart

โ–ธ Static Private parsePart(value): ParsedPart

since 1.0.0

Parameters

NameType
valuestring

Returns

ParsedPart

Defined in

projects/plugins/packages/api/src/lib/utils/RouteData.ts:54


split

โ–ธ Static Private split(url): string[]

since 1.0.0

Parameters

NameType
urlstring

Returns

string[]

Defined in

projects/plugins/packages/api/src/lib/utils/RouteData.ts:63