DataResolver

export class DataResolver extends null
export class DataResolver extends null
The DataResolver identifies different objects and tries to resolve a specific piece of information from them.

Extends

null
Static
resolveBase64(data):string
Resolves a Base64Resolvable to a Base 64 image.
Returns
NameTypeOptionalDescription
dataBase64ResolvableNoThe base 64 resolvable you want to resolve
Static
resolveCode(data, regex):string
Resolves the string to a code based on the passed regex.
NameTypeOptionalDescription
datastringNoThe string to resolve
regexRegExpNoThe RegExp used to extract the code
Static
resolveFile(resource):Promise<ResolvedFile>
Resolves a BufferResolvable to a Buffer.
NameTypeOptionalDescription
resourceBufferResolvable | StreamNoThe buffer or stream resolvable to resolve
Static
resolveGuildTemplateCode(data):string
Resolves GuildTemplateResolvable to a template code.
NameTypeOptionalDescription
dataGuildTemplateResolvableNoThe template resolvable to resolve
Static
resolveImage(image):Promise<string | null>
Resolves a Base64Resolvable, a string, or a BufferResolvable to a Base 64 image.
NameTypeOptionalDescription
imageBufferResolvable | Base64ResolvableNoThe image to be resolved
Static
resolveInviteCode(data):string
Resolves InviteResolvable to an invite code.
NameTypeOptionalDescription
dataInviteResolvableNoThe invite resolvable to resolve