Skip to main content
Module

x/slack_bolt/src/types/shortcuts/message-shortcut.ts

TypeScript framework to build Slack apps in a flash with the latest platform features. Deno port of @slack/bolt
Latest
File
// deno-lint-ignore-file camelcase no-explicit-any/** * A Slack message action wrapped in the standard metadata. * * This describes the entire JSON-encoded body of a request from Slack message actions. */export interface MessageShortcut { type: "message_action" callback_id: string trigger_id: string message_ts: string // undocumented response_url: string // TODO: are all of these really non-optional? message: { type: "message" user?: string // undocumented that this is optional, it won't be there for bot messages ts: string text?: string // undocumented that this is optional, but how could it exist on block kit based messages? [key: string]: any } user: { id: string name: string team_id?: string // undocumented username?: string // shows up on org app msg actions } channel: { id: string name: string } team: { id: string domain: string enterprise_id?: string // undocumented enterprise_name?: string // undocumented } | null token: string action_ts: string // undocumented
// exists for enterprise installs is_enterprise_install?: boolean enterprise?: { id: string name: string }}