import type { SlashCommandCallbackParams } from '@rocket.chat/core-typings'; import { slashCommands } from '../../lib/utils/slashCommand'; import { executeSendMessage } from '../../meteor-methods/messages/sendMessage'; /* * Gimme is a named function that will replace /gimme commands * @param {Object} message - The message object */ async function Gimme({ message, params, userId }: SlashCommandCallbackParams<'gimme'>): Promise { const msg = message; msg.msg = `༼ つ ◕_◕ ༽つ ${params}`; await executeSendMessage(userId, msg); } slashCommands.add({ command: 'gimme', callback: Gimme, options: { description: 'Slash_Gimme_Description', params: 'your_message_optional', clientOnly: true, }, });