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