The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Rocket.Chat/app/utils/lib/slashCommand.d.ts

16 lines
667 B

export declare const slashCommands: {
commands: { [key: string]: any };
add(
command: string,
callback: Function | undefined,
options: object,
result: unknown | undefined,
providesPreview: boolean,
previewer: unknown | undefined,
previewCallback: Function | undefined,
): void;
run(command: string, params: string, message: object, triggerId: string | undefined): Function | void;
getPreviews(command: string, params: string, message: object, preview?: unknown, triggerId?: string | undefined): Function | void;
executePreview(command: string, params: string, message: object, preview: unknown, triggerId: string | undefined): Function | void;
};