Skip to content

The open alternative to Salesforce, designed for AI.

712 B
Raw Blame
import { type InputJsonSchema } from 'twenty-sdk/logic-function';

export const slackDeleteMessageInputSchema: InputJsonSchema = {
  type: 'object',
  properties: {
    slackChannelId: {
      type: 'string',
      label: 'Slack channel (name or ID)',
      description:
        'Channel that contains the message (Slack channel ID like C…).',
    },
    messageTimestamp: {
      type: 'string',
      label: 'Message timestamp',
      description:
        'Which message to remove: its **timestamp** from Slack (same value as `slackTs` when the bot posted it). Only messages sent by this bot can be deleted.',
    },
  },
  required: ['slackChannelId', 'messageTimestamp'],
  additionalProperties: false,
};