TwurpleAuthenticationGetting dataExamplesFAQMigration

Main classes

HelixPaginatedEventSubSubscriptionsRequest

A special case of HelixPaginatedRequestWithTotal with support for fetching the total cost and cost limit of EventSub subscriptions.

Overview

Properties

current

Type: ?D[]

The last fetched page of data associated to the requested resource.

Only works with HelixPaginatedRequest#getNext} and not with any other methods of data fetching.

currentCursor

Type: ?string

Gets the current cursor.

Only useful if you want to make manual requests to the API.

Methods

__@asyncIterator@1709()

Return type: AsyncGenerator<HelixEventSubSubscription, void, undefined>

getAll()

async

Gets all data associated to the requested resource.

Be aware that this makes multiple calls to the Twitch API. Due to this, you might be more suspectible to rate limits.

Also be aware that this resets the internal cursor, so avoid using this and HelixPaginatedRequest#getNext} together.

getMaxTotalCost()

async

Gets the cost limit of EventSub subscriptions.

Return type: number

getNext()

async

Gets the next available page of data associated to the requested resource, or an empty array if there are no more available pages.

getTotalCost()

async

Gets the total cost of EventSub subscriptions.

Return type: number

getTotalCount()

async

Gets the total number of entities existing in the queried result set.

Return type: number

reset()

Resets the internal cursor.

This will make HelixPaginatedRequest#getNext} start from the first page again.

Return type: void