UNPKG

@johnbotapp/discord-html-transcripts

Version:

A nicely formatted html transcript generator for discord.js.

10 lines (9 loc) 487 B
import type { APIMessageComponentEmoji, Emoji } from 'discord.js'; export declare function isDefined<T>(value: T | undefined | null): value is T; export declare function formatBytes(bytes: number, decimals?: number): string; export declare function parseDiscordEmoji(emoji: Emoji | APIMessageComponentEmoji): string; /** * Converts a stream to a string * @param stream - The stream to convert */ export declare function streamToString(stream: NodeJS.ReadableStream): Promise<string>;