UNPKG

@fantinodavide/discord-html-transcripts

Version:

A nicely formatted html transcript generator for discord.js.

33 lines (32 loc) 1.09 kB
import { ChannelType } from 'discord.js'; import React from 'react'; 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; }): React.JSX.Element; export declare function MessageSingleASTNode({ node, context }: { node: SingleASTNode; context: RenderContentContext; }): string | number | bigint | boolean | React.JSX.Element | Iterable<React.ReactNode> | Promise<React.AwaitedReactNode> | null | undefined; export declare function getChannelType(channelType: ChannelType): 'channel' | 'voice' | 'thread' | 'forum'; export {};