UNPKG

oceanic-transcripts

Version:

A nicely formatted html transcript generator for oceanic.js.

19 lines (18 loc) 814 B
import { type TextableChannel, type AnyTextableChannel, type Message, type Role, type User } from 'oceanic.js'; import type { Profile } from '../types'; export type RenderMessageContext = { messages: Message[]; channel: TextableChannel | AnyTextableChannel; profiles: Record<string, Profile>; callbacks: { resolveChannel: (channelId: string) => Promise<TextableChannel | AnyTextableChannel | null>; resolveUser: (userId: string) => Promise<User | null>; resolveRole: (roleId: string) => Promise<Role | null>; }; poweredBy?: boolean; footerText?: string; saveImages: boolean; favicon: 'guild' | string; hydrate: boolean; }; export default function render({ messages, profiles, channel, callbacks, ...options }: RenderMessageContext): Promise<string>;