@rocket.chat/apps-engine
Version:
The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.
27 lines (26 loc) • 918 B
TypeScript
export interface ISlashCommandPreview {
/** The i18n string of the title of the preview. */
i18nTitle: string;
/** The preview items to show, it can be an empty array. */
items: Array<ISlashCommandPreviewItem>;
}
export interface ISlashCommandPreviewItem {
/** An internal id value of the preview item. */
id: string;
/** The type of preview item this is. */
type: SlashCommandPreviewItemType;
/** The value of this preview item, url or text (could even be base64). */
value: string;
}
export declare enum SlashCommandPreviewItemType {
/** Represents image preview. Could be `png`, `gif`, etc. */
IMAGE = "image",
/** Represents video preview. */
VIDEO = "video",
/** Represents audio preview. */
AUDIO = "audio",
/** Represents text preview. */
TEXT = "text",
/** As the name says, an unknown type (try not to use). */
OTHER = "other"
}