twitcheasy-twitch-bottwitch-authtwitch-auth-tmitwitch-chat-clienttwitch-eventsubtwitch-pubsub-clienttwitch-webhooks
Welcome

Classes

ApiClientBadgesApiBitsApiChannelChannelApiChannelFollowChannelPlaceholderChannelSubscriptionChatApiChatBadgeListChatBadgeSetChatBadgeVersionChatEmoteChatEmoteListChattersListCheermoteListConfigErrorCreatedVideoEmoteSetListHelixApiGroupHelixBanHelixBanEventHelixBitsApiHelixBitsLeaderboardHelixBitsLeaderboardEntryHelixChannelHelixChannelApiHelixChannelEditorHelixChannelEmoteHelixChannelPointsApiHelixChannelSearchResultHelixChatApiHelixChatBadgeSetHelixChatBadgeVersionHelixCheermoteListHelixClipHelixClipApiHelixCustomRewardHelixCustomRewardRedemptionHelixEmoteHelixEmoteFromSetHelixEventSubApiHelixEventSubSubscriptionHelixExtensionsApiHelixExtensionTransactionHelixFollowHelixGameHelixGameApiHelixHypeTrainApiHelixHypeTrainContributionHelixHypeTrainEventHelixInstalledExtensionHelixInstalledExtensionListHelixModerationApiHelixModeratorHelixModeratorEventHelixPaginatedRequestHelixPaginatedRequestWithTotalHelixPaginatedScheduleSegmentRequestHelixPollHelixPollApiHelixPollChoiceHelixPredictionHelixPredictionApiHelixPredictionOutcomeHelixPredictorHelixPrivilegedUserHelixScheduleHelixScheduleApiHelixScheduleSegmentHelixSearchApiHelixStreamHelixStreamApiHelixStreamMarkerHelixStreamMarkerWithVideoHelixSubscriptionHelixSubscriptionApiHelixSubscriptionEventHelixTagHelixTagApiHelixTeamHelixTeamApiHelixTeamWithUsersHelixUserHelixUserApiHelixUserBlockHelixUserExtensionHelixUserRelationHelixUserSubscriptionHelixVideoHelixVideoApiHelixWebHooksApiHelixWebHookSubscriptionKrakenApiGroupNoSubscriptionProgramErrorPrivilegedChannelPrivilegedUserSearchApiStreamStreamApiStreamNotLiveErrorSubscriptionTeamTeamApiTeamWithUsersUnsupportedApiUserUserApiUserBlockUserChatInfoUserFollowUserSubscriptionVideoVideoApi

ApiConfig

Configuration for an ApiClient instance.

{
An authentication provider that supplies tokens to the client.
Default values for fetched cheermotes.
Additional options to pass to the fetch method.
fetchOptions?:
TwitchApiCallFetchOptions

Aliased type: Omit<RequestInit | NodeRequestInit, "headers" | "method" | "body">

The scopes to request with the initial request, even if it's not necessary for the request.
initialScopes?: Array<string>
Options to pass to the logger.
logger?: Partial<LoggerOptions>
The minimum level of log levels to see. Defaults to critical errors.
logLevel?: LogLevel
Whether to authenticate the client before a request is made.
preAuth: boolean
}

Properties

authProvider

Type: AuthProvider

An authentication provider that supplies tokens to the client.

For more information, see the AuthProvider documentation.

cheermotes

Type: TwitchCheermoteConfig

Deprecated.

Pass the full CheermoteFormat to the applicable methods instead.

Default values for fetched cheermotes.

fetchOptions

Type:
TwitchApiCallFetchOptions

Aliased type: Omit<RequestInit | NodeRequestInit, "headers" | "method" | "body">

Additional options to pass to the fetch method.

initialScopes

Type: Array<string>

Deprecated.

Call ApiClient#requestScopes after instantiating the client instead.

The scopes to request with the initial request, even if it's not necessary for the request.

logger

Type: ?Partial<LoggerOptions>

Options to pass to the logger.

logLevel

Type: ?LogLevel

Deprecated.

Use logger.minLevel instead.

The minimum level of log levels to see. Defaults to critical errors.

preAuth

Type: boolean

Deprecated.

Call ApiClient#requestScopes after instantiating the client instead.

Whether to authenticate the client before a request is made.