current branch | master branch |
---|---|
The Ttv Chat Emitter for VS Code extension provides a single sign-in and chat listener for VS Code extensions that interact with Twitch Chat. This extension will handle the authentication with Twitch using an OAuth token and receiving/sending of messages to/from Twitch's chat service and emit the receiving messages to all extensions that listen.
This extension provides the following API endpoints:
sendMessage(message: string): Promise<void>
Used to send messages to the twitch chat serviceonTtvClientConnectionChanged: Event<TtvClientConnectionChangedEvent>
Raised when the twitch chat client connects or disconnectsonTtvClientRecievedMessage: Event<TtvClientMessageReceivedEvent>
Raised whenever a message is received from twitch' chat serviceonTtvClientCheerReceived: Event<TtvClientCheerReceivedEvent>
Event that fires whenever a cheer is received.onTtvClientHosted: Event<TtvClientHostedEvent>
Event that fires whenever a hosted event occurs.onTtvClientRaided: Event<TtvClientRaidedEvent>
Event that fires whenver a raid occurs.onTtvClientSubscriptionReceived: Event<TtvClientSubscriptionEvent>
Event that fires whenever someone subscribes.onTtvClientResubReceived: Event<TtvClientResubEvent>
Event that fires whenever someone re-subscribes.onTtvClientSubGiftReceived: Event<TtvClientSubGiftEvent>
Event that fires whenever a gifted subscription occurs.onTtvClientMysterySubGiftReceived: Event<TtvClientMysteryGiftEvent>
Event that fires whenever a mystery gifted subscription occurs.