Skip to content
Snippets Groups Projects
Unverified Commit c676b357 authored by Douglas Fabris's avatar Douglas Fabris Committed by GitHub
Browse files

chore(client): Remove Meteor.Error from `slashCommand` (#32915)

parent 77989f51
No related branches found
No related tags found
No related merge requests found
Showing
with 20 additions and 20 deletions
import { settings } from '../../settings/client';
import { slashCommands } from '../../utils/lib/slashCommand';
import { slashCommands } from '../../utils/client/slashCommand';
settings.onload('SlackBridge_Enabled', (key, value) => {
if (value) {
......
import type { SlashCommandCallbackParams } from '@rocket.chat/core-typings';
import { sdk } from '../../utils/client/lib/SDKClient';
import { slashCommands } from '../../utils/lib/slashCommand';
import { slashCommands } from '../../utils/client/slashCommand';
/*
* Gimme is a named function that will replace /gimme commands
* @param {Object} message - The message object
......
import type { SlashCommandCallbackParams } from '@rocket.chat/core-typings';
import { sdk } from '../../utils/client/lib/SDKClient';
import { slashCommands } from '../../utils/lib/slashCommand';
import { slashCommands } from '../../utils/client/slashCommand';
/*
* Lenny is a named function that will replace /lenny commands
* @param {Object} message - The message object
......
import type { SlashCommandCallbackParams } from '@rocket.chat/core-typings';
import { sdk } from '../../utils/client/lib/SDKClient';
import { slashCommands } from '../../utils/lib/slashCommand';
import { slashCommands } from '../../utils/client/slashCommand';
/*
* Shrug is a named function that will replace /shrug commands
* @param {Object} message - The message object
......
import type { SlashCommandCallbackParams } from '@rocket.chat/core-typings';
import { sdk } from '../../utils/client/lib/SDKClient';
import { slashCommands } from '../../utils/lib/slashCommand';
import { slashCommands } from '../../utils/client/slashCommand';
/*
* Tableflip is a named function that will replace /Tableflip commands
* @param {Object} message - The message object
......
import type { SlashCommandCallbackParams } from '@rocket.chat/core-typings';
import { sdk } from '../../utils/client/lib/SDKClient';
import { slashCommands } from '../../utils/lib/slashCommand';
import { slashCommands } from '../../utils/client/slashCommand';
/*
* Unflip is a named function that will replace /unflip commands
* @param {Object} message - The message object
......
import type { SlashCommandCallbackParams } from '@rocket.chat/core-typings';
import { executeSendMessage } from '../../lib/server/methods/sendMessage';
import { slashCommands } from '../../utils/lib/slashCommand';
import { slashCommands } from '../../utils/server/slashCommand';
/*
* Gimme is a named function that will replace /gimme commands
* @param {Object} message - The message object
......
import type { SlashCommandCallbackParams } from '@rocket.chat/core-typings';
import { executeSendMessage } from '../../lib/server/methods/sendMessage';
import { slashCommands } from '../../utils/lib/slashCommand';
import { slashCommands } from '../../utils/server/slashCommand';
/*
* Lenny is a named function that will replace /lenny commands
* @param {Object} message - The message object
......
import type { SlashCommandCallbackParams } from '@rocket.chat/core-typings';
import { executeSendMessage } from '../../lib/server/methods/sendMessage';
import { slashCommands } from '../../utils/lib/slashCommand';
import { slashCommands } from '../../utils/server/slashCommand';
/*
* Shrug is a named function that will replace /shrug commands
* @param {Object} message - The message object
......
import type { SlashCommandCallbackParams } from '@rocket.chat/core-typings';
import { executeSendMessage } from '../../lib/server/methods/sendMessage';
import { slashCommands } from '../../utils/lib/slashCommand';
import { slashCommands } from '../../utils/server/slashCommand';
/*
* Tableflip is a named function that will replace /Tableflip commands
* @param {Object} message - The message object
......
import type { SlashCommandCallbackParams } from '@rocket.chat/core-typings';
import { executeSendMessage } from '../../lib/server/methods/sendMessage';
import { slashCommands } from '../../utils/lib/slashCommand';
import { slashCommands } from '../../utils/server/slashCommand';
/*
* Unflip is a named function that will replace /unflip commands
* @param {Object} message - The message object
......
import { slashCommands } from '../../utils/lib/slashCommand';
import { slashCommands } from '../../utils/client/slashCommand';
slashCommands.add({
command: 'archive',
......
......@@ -10,7 +10,7 @@ import { roomCoordinator } from '../../../server/lib/rooms/roomCoordinator';
import { hasPermissionAsync } from '../../authorization/server/functions/hasPermission';
import { archiveRoom } from '../../lib/server/functions/archiveRoom';
import { settings } from '../../settings/server';
import { slashCommands } from '../../utils/lib/slashCommand';
import { slashCommands } from '../../utils/server/slashCommand';
slashCommands.add({
command: 'archive',
......
import { slashCommands } from '../../utils/lib/slashCommand';
import { slashCommands } from '../../utils/client/slashCommand';
slashCommands.add({
command: 'create',
......
......@@ -6,7 +6,7 @@ import { i18n } from '../../../server/lib/i18n';
import { createChannelMethod } from '../../lib/server/methods/createChannel';
import { createPrivateGroupMethod } from '../../lib/server/methods/createPrivateGroup';
import { settings } from '../../settings/server';
import { slashCommands } from '../../utils/lib/slashCommand';
import { slashCommands } from '../../utils/server/slashCommand';
slashCommands.add({
command: 'create',
......
......@@ -4,7 +4,7 @@ import { Users } from '@rocket.chat/models';
import { i18n } from '../../../server/lib/i18n';
import { settings } from '../../settings/server';
import { slashCommands } from '../../utils/lib/slashCommand';
import { slashCommands } from '../../utils/server/slashCommand';
/*
* Help is a named function that will replace /help commands
......
import { slashCommands } from '../../utils/lib/slashCommand';
import { slashCommands } from '../../utils/client/slashCommand';
slashCommands.add({
command: 'hide',
......
import { slashCommands } from '../../utils/lib/slashCommand';
import { slashCommands } from '../../utils/client/slashCommand';
slashCommands.add({
command: 'invite',
......
......@@ -6,7 +6,7 @@ import { Meteor } from 'meteor/meteor';
import { i18n } from '../../../server/lib/i18n';
import { addUsersToRoomMethod } from '../../lib/server/methods/addUsersToRoom';
import { settings } from '../../settings/server';
import { slashCommands } from '../../utils/lib/slashCommand';
import { slashCommands } from '../../utils/server/slashCommand';
/*
* Invite is a named function that will replace /invite commands
......
import { slashCommands } from '../../utils/lib/slashCommand';
import { slashCommands } from '../../utils/client/slashCommand';
slashCommands.add({
command: 'invite-all-to',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment