Class RedditChannelAdapter

Channel adapter for Reddit.

Uses the snoowrap package via dynamic import so the dependency is optional. Falls back to raw fetch against the Reddit OAuth2 API if snoowrap is unavailable.

Capabilities: text, rich_text, images, video, reactions, threads, group_chat, hashtags, polls.

Conversation ID mapping:

  • Subreddit post: r/<subreddit> or post:<thing_id>
  • Comment reply: comment:<thing_id>
  • Direct message: dm:<username>

Hierarchy (view full)

Constructors

Methods

  • Get information about the authenticated user.

    Returns undefined | {
        name: string;
        id: string;
    }

Properties

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

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

retryConfig: RetryConfig
platform: ChannelPlatform = 'reddit'

Platform this adapter serves.

displayName: "Reddit" = 'Reddit'

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

capabilities: readonly ChannelCapability[] = ...

Declared capabilities of this adapter.