Class SlackChannelAdapter

Channel adapter for Slack using the @slack/bolt SDK.

Uses dynamic import so @slack/bolt is only required at runtime when the adapter is actually initialized.

When appToken is provided, the adapter uses Socket Mode (no public endpoint required). Otherwise, it starts an HTTP server for receiving Slack events.

Capabilities: text, rich_text, images, documents, reactions, threads, mentions, buttons, group_chat, channels, editing, deletion.

Hierarchy (view full)

Constructors

Methods

  • Parameters

    • conversationId: string

    Returns Promise<{
        name?: string;
        memberCount?: number;
        isGroup: boolean;
        metadata?: Record<string, unknown>;
    }>

Properties

status: ChannelConnectionStatus = 'disconnected'
connectedSince: undefined | string
errorMessage: undefined | string
platformInfo: Record<string, unknown> = {}
auth: undefined | ChannelAuthConfig & {
    params?: SlackAuthParams;
}

Stored auth config so reconnect() can re-use it.

retryConfig: RetryConfig
platform: ChannelPlatform = 'slack'

Platform this adapter serves.

displayName: "Slack" = 'Slack'

Human-readable display name (e.g., "WhatsApp Business").

capabilities: readonly ChannelCapability[] = ...

Declared capabilities of this adapter.