Overview
Can be accessed using client.helix.channels
on an ApiClient instance.
Example
const api = new ApiClient(new StaticAuthProvider(clientId, accessToken));
const channel = await api.helix.channels.getChannelInfo('125328655');
Methods
getChannelInfo(user)
asyncRetrieves the channel data for the given user.
Parameter | Type | Description |
---|---|---|
user | UserIdResolvable | The user you want to get channel info for. |
Return type: HelixChannel | null
startChannelCommercial(broadcaster, length)
asyncStarts a commercial on a channel.
Parameter | Type | Description |
---|---|---|
broadcaster | UserIdResolvable | The broadcaster on whose channel the commercial is started. |
length | CommercialLength The possible lengths of a channel commercial. Aliased type: 30 | 60 | 90 | 120 | 150 | 180 | The length of the commercial, in seconds. |
Return type: void
updateChannelInfo(user, data)
asyncUpdates the given user's channel data.
Parameter | Type | Description |
---|---|---|
user | UserIdResolvable | The user you want to update channel info for. |
data | HelixChannelUpdate | The channel info to set. |
Return type: void