Skip to content

kient / ChannelSubscription

Class: ChannelSubscription

src/structures/channel-subscription.ts:14

Extends

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
_kientreadonlyKient-EventBase._kientsrc/structures/base.ts:4
broadcasterpublicChatUserThe user that has been subscribed to-src/structures/channel-subscription.ts:19
createdAtpublicDateThe date the user had subscribed to the channel-src/structures/channel-subscription.ts:34
durationpublicnumberHow many months they subscribed for consecutively-src/structures/channel-subscription.ts:29
kickEventpublicobjectThe information relating the received eventEventBase.kickEventsrc/structures/base-event.ts:17
kickEvent.messageIdpublicstringThe event's message id-src/structures/base-event.ts:21
kickEvent.subscriptionIdpublicstringThe subscription ID associated with the event-src/structures/base-event.ts:26
kickEvent.timestamppublicDateThe event's timestamp-src/structures/base-event.ts:31
subscriberpublicChatUserThe user that has followed the broadcaster-src/structures/channel-subscription.ts:24

Methods

toJSON()

ts
toJSON(): ExcludeFunctionsAndPrivate<ChannelSubscription>

src/structures/channel-subscription.ts:48

Returns

ExcludeFunctionsAndPrivate<ChannelSubscription>


unsubscribe()

ts
unsubscribe(): void

src/structures/base-event.ts:48

The unsubscribes the client from this subscription type using the associated subscription ID in the event

Returns

void

Inherited from

EventBase.unsubscribe