Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/meteor/app/utils/lib/slashCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export interface ISlashCommandAddParams<T extends string> {
previewer?: SlashCommand['previewer'];
previewCallback?: SlashCommand['previewCallback'];
appId?: string;
description?: string;
}

export const slashCommands = {
Expand All @@ -30,12 +31,13 @@ export const slashCommands = {
previewer,
previewCallback,
appId,
description = '',
}: ISlashCommandAddParams<T>): void {
this.commands[command] = {
command,
callback,
params: options.params,
description: options.description,
description: options.description || description,
Comment thread
LucianoPierdona marked this conversation as resolved.
Resolved
permission: options.permission,
clientOnly: options.clientOnly || false,
result,
Expand Down