@playlive/twitch-shared
    Preparing search index...

    Interface ITwitchAPIClient

    Minimum surface a Helix-style Twitch client must expose. The chatbot feature in the unified data pipeline depends on this interface instead of @playlive/twitch-helix directly, which keeps build graphs acyclic.

    interface ITwitchAPIClient {
        getChannelInfo(twitchUserID: string): Promise<TwitchChannel | null>;
        getTwitchUserData(
            args: {
                token?: string;
                twitchUserID?: string;
                twitchUsername?: string;
            },
        ): Promise<TwitchUser | null>;
        sendChatMessage(
            message: string,
            broadcasterUserID: string,
            prefix?: string,
        ): Promise<unknown>;
    }
    Index
    • Parameters

      • args: { token?: string; twitchUserID?: string; twitchUsername?: string }

      Returns Promise<TwitchUser | null>

    • Parameters

      • message: string
      • broadcasterUserID: string
      • Optionalprefix: string

      Returns Promise<unknown>