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.

static
resolveBase64() : string

Resolves a Base64Resolvable to a Base 64 image.

static
resolveCode(
data: string
regex: RegExp
) : string

Resolves the string to a code based on the passed regex.

static
resolveFile() : Promise<ResolvedFile>

Resolves a BufferResolvable to a Buffer.

static
resolveGuildTemplateCode() : string

Resolves GuildTemplateResolvable to a template code.

static
resolveImage() : Promise<string | null>

Resolves a Base64Resolvable, a string, or a BufferResolvable to a Base 64 image.

static
resolveInviteCode() : string

Resolves InviteResolvable to an invite code.