UNPKG

discord-html-transcripts-fix

Version:

A nicely formatted html transcript generator for discord.js. Bugfix fork with support for the latest discord.js and Components v2.

32 lines (31 loc) 967 B
import { ChannelType } from 'discord.js'; import type { SingleASTNode } from 'simple-markdown'; import type { RenderMessageContext } from '../'; export declare enum RenderType { EMBED = 0, REPLY = 1, NORMAL = 2, WEBHOOK = 3 } type RenderContentContext = RenderMessageContext & { type: RenderType; _internal?: { largeEmojis?: boolean; }; }; /** * Renders discord markdown content * @param content - The content to render * @param context - The context to render the content in * @returns */ export default function MessageContent({ content, context }: { content: string; context: RenderContentContext; }): Promise<import("react/jsx-runtime").JSX.Element>; export declare function MessageSingleASTNode({ node, context }: { node: SingleASTNode; context: RenderContentContext; }): Promise<any>; export declare function getChannelType(channelType: ChannelType): 'channel' | 'voice' | 'thread' | 'forum'; export {};