Skip to main content

SlackShortcutMiddlewareArgs<Shortcut>

type SlackShortcutMiddlewareArgs<Shortcut> = object & Shortcut extends MessageShortcut ? object : unknown;

Defined in: src/types/shortcuts/index.ts:24

Arguments which listeners and middleware receive to process a shortcut from Slack.

The type parameter Shortcut represents the entire JSON-encoded request body from Slack.

Type Declaration

ack

ack: AckFn<void>;

body

body: Shortcut;

payload

payload: Shortcut;

respond

respond: RespondFn;

shortcut

shortcut: Shortcut;

Type Parameters

Shortcut

Shortcut extends SlackShortcut = SlackShortcut