class DataResolver
extends
nullexport class DataResolver extends null
The DataResolver identifies different objects and tries to resolve a specific piece of information from them.
static resolveBase64data: Base64Resolvable) : string (
data: Base64Resolvable
Resolves a Base64Resolvable to a Base 64 image.
Resolves the string to a code based on the passed regex.
static resolveFileresource: BufferResolvable | Stream) : Promise<ResolvedFile> (
resource: BufferResolvable | Stream
Resolves a BufferResolvable to a Buffer.
static resolveGuildTemplateCodedata: GuildTemplateResolvable) : string (
data: GuildTemplateResolvable
Resolves GuildTemplateResolvable to a template code.
static resolveImageimage: BufferResolvable | Base64Resolvable) : Promise<string | null> (
image: BufferResolvable | Base64Resolvable
Resolves a Base64Resolvable, a string, or a BufferResolvable to a Base 64 image.
static resolveInviteCodedata: InviteResolvable) : string (
data: InviteResolvable
Resolves InviteResolvable to an invite code.