Constructors
constructor
- new Twitch(clientId, clientSecret): Twitch
-
Parameters
-
clientId: string
-
clientSecret: string
Properties
Private
#clientId
#clientId: string
Private
#clientSecret
#clientSecret: string
Private
#debug
#debug: boolean
Methods
Private
#checkIfLive
- #checkIfLive(user): Promise<boolean>
-
Returns Promise<boolean>
Private
#fetch
- #fetch<D>(url, method?): FetchResults<D>
-
Parameters
-
url: string
-
method: RequestMethod = "GET"
Private
#generateToken
- #generateToken(): Promise<null | string>
-
Returns Promise<null | string>
Private
#getURL
- #getURL(endpoint, users, isStream?): GetUrlResults
-
Parameters
-
endpoint: string
-
-
isStream: boolean = true
Private
#token
- #token(): Promise<null | string>
-
Returns Promise<null | string>
check
- check(users): Promise<{
failed: string[];
success: string[];
}>
-
Returns Promise<{
failed: string[];
success: string[];
}>
Private
log
- log(...args): void
-
Returns void