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
querystring❌The 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
querystring❌The query
fallbackSearchEngineQueryType❌N/A

public static validateId(q): boolean

ParameterTypeOptional
qstring❌

public static validateURL(q): boolean

ParameterTypeOptional
qstring❌