oceanic-transcripts
Version:
A nicely formatted html transcript generator for oceanic.js.
22 lines (21 loc) • 638 B
TypeScript
import React from 'react';
import type { Attachment as AttachmentType, Message } from 'oceanic.js';
import type { RenderMessageContext } from '..';
/**
* Renders all attachments for a message
* @param message
* @param context
* @returns
*/
export declare function Attachments(props: {
message: Message;
context: RenderMessageContext;
}): Promise<React.JSX.Element>;
/**
* Renders one Discord Attachment
* @param props - the attachment and rendering context
*/
export declare function Attachment({ attachment, context, }: {
attachment: AttachmentType;
context: RenderMessageContext;
}): Promise<React.JSX.Element>;