Skip to main content
Module

x/slack_bolt/src/helpers.ts>getTypeAndConversation

TypeScript framework to build Slack apps in a flash with the latest platform features. Deno port of @slack/bolt
Latest
function getTypeAndConversation
import { getTypeAndConversation } from "https://deno.land/x/slack_bolt@1.0.0/src/helpers.ts";

Helper which finds the type and channel (if any) that any specific incoming event is related to.

This is analogous to WhenEventHasChannelContext and the conditional type that checks SlackAction for a channel context.

Parameters

body: any

Returns

{ type?: IncomingEventType; conversationId?: string; }