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

Classes

ApiClientBadgesApiBitsApiChannelChannelApiChannelFollowChannelPlaceholderChannelSubscriptionChatApiChatBadgeListChatBadgeSetChatBadgeVersionChatEmoteChatEmoteListChattersListCheermoteListConfigErrorCreatedVideoEmoteSetListHelixApiGroupHelixBanHelixBanEventHelixBitsApiHelixBitsLeaderboardHelixBitsLeaderboardEntryHelixChannelHelixChannelApiHelixChannelEditorHelixChannelEmoteHelixChannelPointsApiHelixChannelSearchResultHelixChatApiHelixChatBadgeSetHelixChatBadgeVersionHelixCheermoteListHelixClipHelixClipApiHelixCustomRewardHelixCustomRewardRedemptionHelixEmoteHelixEmoteFromSetHelixEventSubApiHelixEventSubSubscriptionHelixExtensionsApiHelixExtensionTransactionHelixFollowHelixGameHelixGameApiHelixHypeTrainApiHelixHypeTrainContributionHelixHypeTrainEventHelixInstalledExtensionHelixInstalledExtensionListHelixModerationApiHelixModeratorHelixModeratorEventHelixPaginatedRequestHelixPaginatedRequestWithTotalHelixPaginatedScheduleSegmentRequestHelixPollHelixPollApiHelixPollChoiceHelixPredictionHelixPredictionApiHelixPredictionOutcomeHelixPredictorHelixPrivilegedUserHelixScheduleHelixScheduleApiHelixScheduleSegmentHelixSearchApiHelixStreamHelixStreamApiHelixStreamMarkerHelixStreamMarkerWithVideoHelixSubscriptionHelixSubscriptionApiHelixSubscriptionEventHelixTagHelixTagApiHelixTeamHelixTeamApiHelixTeamWithUsersHelixUserHelixUserApiHelixUserBlockHelixUserExtensionHelixUserRelationHelixUserSubscriptionHelixVideoHelixVideoApiHelixWebHooksApiHelixWebHookSubscriptionKrakenApiGroupNoSubscriptionProgramErrorPrivilegedChannelPrivilegedUserSearchApiStreamStreamApiStreamNotLiveErrorSubscriptionTeamTeamApiTeamWithUsersUnsupportedApiUserUserApiUserBlockUserChatInfoUserFollowUserSubscriptionVideoVideoApi

HelixModerationApi

The Helix API methods that deal with moderation.

Overview

Can be accessed using client.helix.moderation on an ApiClient instance.

Example

const api = new ApiClient(new StaticAuthProvider(clientId, accessToken));
const { data: users } = await api.helix.moderation.getBannedUsers('61369223');

Methods

checkUserBan(channel, user)

async

Checks whether a given user is banned in a given channel.

ParameterTypeRequiredDefaultDescription
channelUserIdResolvablenone

The channel to check for a ban of the given user.

userUserIdResolvablenone

The user to check for a ban in the given channel.

Return type: boolean

checkUserMod(channel, user)

async

Checks whether a given user is a moderator of a given channel.

ParameterTypeRequiredDefaultDescription
channelUserIdResolvablenone

The channel to check.

userUserIdResolvablenone

The user to check.

Return type: boolean

getBanEvents(channel, filter)

async

Retrieves a list of ban events for a given channel.

ParameterTypeRequiredDefaultDescription
channelUserIdResolvablenone

The channel to retrieve the ban events from.

filterHelixBanFilternone

Additional filters for the result set.

getBanEventsPaginated(channel)

Creates a paginator for ban events for a given channel.

ParameterTypeRequiredDefaultDescription
channelUserIdResolvablenone

The channel to retrieve the ban events from.

Return type: HelixPaginatedRequest<HelixBanEventData, HelixBanEvent>

getBannedUsers(channel, filter)

async

Retrieves a list of banned users in a given channel.

ParameterTypeRequiredDefaultDescription
channelUserIdResolvablenone

The channel to retrieve the banned users from.

filterHelixBanFilternone

Additional filters for the result set.

getBannedUsersPaginated(channel)

Creates a paginator for banned users in a given channel.

ParameterTypeRequiredDefaultDescription
channelUserIdResolvablenone

The channel to retrieve the banned users from.

Return type: HelixPaginatedRequest<HelixBanData, HelixBan>

getModeratorEvents(channel, filter)

async

Retrieves a list of moderator events for a given channel.

ParameterTypeRequiredDefaultDescription
channelUserIdResolvablenone

The channel to retrieve the moderator events from.

filterHelixModeratorFilternone

Additional filters for the result set.

getModeratorEventsPaginated(channel)

Creates a paginator for moderator events for a given channel.

ParameterTypeRequiredDefaultDescription
channelUserIdResolvablenone

The channel to retrieve the moderator events from.

Return type: HelixPaginatedRequest<HelixModeratorEventData, HelixModeratorEvent>

getModerators(channel, filter)

async

Retrieves a list of moderators in a given channel.

ParameterTypeRequiredDefaultDescription
channelUserIdResolvablenone

The channel to retrieve moderators from.

filterHelixModeratorFilternone

Additional filters for the result set.

getModeratorsPaginated(channel)

Creates a paginator for moderators in a given channel.

ParameterTypeRequiredDefaultDescription
channelUserIdResolvablenone

The channel to retrieve moderators from.

Return type: HelixPaginatedRequest<HelixModeratorData, HelixModerator>

processHeldAutoModMessage(user, msgId, allow)

async

Processes a message held by AutoMod.

ParameterTypeRequiredDefaultDescription
userUserIdResolvablenone

The user who is processing the message.

msgIdstringnone

The ID of the message.

allowbooleannone

Whether to allow the message - true allows, and false denies.

Return type: void