2022-01-11 13:51:48 +00:00
|
|
|
import Model from '@nozbe/watermelondb/Model';
|
|
|
|
|
|
|
|
export interface ISlashCommand {
|
|
|
|
id: string;
|
|
|
|
params?: string;
|
|
|
|
description?: string;
|
|
|
|
clientOnly?: boolean;
|
|
|
|
providesPreview?: boolean;
|
|
|
|
appId?: string;
|
|
|
|
}
|
|
|
|
|
2022-02-19 02:19:33 +00:00
|
|
|
export interface ISlashCommandResult extends ISlashCommand {
|
|
|
|
command: string;
|
|
|
|
}
|
|
|
|
|
2022-01-11 13:51:48 +00:00
|
|
|
export type TSlashCommandModel = ISlashCommand & Model;
|
2022-03-15 14:41:23 +00:00
|
|
|
|
|
|
|
// For Command Preview ex: /giphy or /tenor in open.rocket.chat
|
|
|
|
export interface IPreviewItem {
|
|
|
|
id: string;
|
|
|
|
type: string;
|
|
|
|
value: string;
|
|
|
|
}
|