Discord Player

QueryResolver

No description provided

QueryResolver

Properties

public regex: any

Methods

public static getVimeoID(query): undefined | null | string

Parses vimeo id from url

ParameterTypeOptionalDescription
querystringThe query

public static preResolve(query, maxDepth): Promise<string>

Pre-resolve redirect urls

ParameterTypeOptional
querystring
maxDepthnumber

public static resolve(query, fallbackSearchEngine): ResolvedQuery

Resolves the given search query

ParameterTypeOptionalDescription
querystringThe query
fallbackSearchEngineQueryTypeN/A

public static validateId(q): boolean

ParameterTypeOptional
qstring

public static validateURL(q): boolean

ParameterTypeOptional
qstring