Skip to content

kient / Channel

Class: Channel

src/structures/channel.ts:18

Data structure of a user's channel

Extends

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
_kientreadonlyKient-Base._kientsrc/structures/base.ts:4
bannerPicturepublicstringThe banner picture url of the channel-src/structures/channel.ts:32
channelDescriptionpublicstringThe description of the channel-src/structures/channel.ts:37
idpublicstringThe channel owner's user ID-src/structures/channel.ts:22
ingest?publicobjectThe channel's private ingest details-src/structures/channel.ts:83
ingest.keypublicstringThe stream key of the channel-src/structures/channel.ts:87
ingest.urlpublicstringThe ingest url of the channel-src/structures/channel.ts:92
slugpublicstringThe slug of the channel-src/structures/channel.ts:27
streampublicobjectThe channel's current stream details Note: If the channel is currently not live, this will show data of the most recent broadcast ot live, this will show data of the most recent broadcast ot live, this will show data of the most recent broadcast-src/structures/channel.ts:43
stream.categorypublicCategoryThe current directory category of the stream-src/structures/channel.ts:47
stream.isLivepublicbooleanIndicates if the stream is currently live-src/structures/channel.ts:52
stream.isMaturepublicbooleanIndicates if the stream is for mature audiences only-src/structures/channel.ts:57
stream.languagepublicstringThe primary language of the stream-src/structures/channel.ts:62
stream.startTimepublicDateThe start time of the stream-src/structures/channel.ts:67
stream.streamTitlepublicstringThe title of the stream-src/structures/channel.ts:72
stream.viewerCountpublicnumberThe viewer count of the stream-src/structures/channel.ts:77

Methods

toJSON()

ts
toJSON(): ExcludeFunctionsAndPrivate<Channel>

src/structures/channel.ts:120

Returns

ExcludeFunctionsAndPrivate<Channel>