Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TwitchJs

Interact with chat and make requests to Twitch API.

Initializing

const token = 'cfabdegwdoklmawdzdo98xt2fo512y'
const clientId = 'uo6dggojyb8d6soh92zknwmi5ej1q2'
const username = 'ronni'
const twitchJs = new TwitchJs({ token, clientId, username })

twitchJs.chat.connect().then(globalUserState => {
  // Do stuff ...
})

twitchJs.api.get('channel').then(response => {
  // Do stuff ...
})

Hierarchy

  • TwitchJs

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

api

api: Api

chat

chat: Chat

Static Api

Api: Api = Api

Static Chat

Chat: Chat = Chat

Methods

updateOptions

Generated using TypeDoc