TwurpleAuthenticationGetting dataExamplesFAQMigration

Main classes

HelixRaidApi

The Helix API methods that deal with raids.

Overview

Can be accessed using client.raids on an ApiClient instance.

Example

const api = new ApiClient({ authProvider });
const raid = await api.raids.startRaid('125328655', '61369223');

Methods

cancelRaid(from)

async

Cancels an initiated raid.

ParameterTypeRequiredDefaultDescription
from
UserIdResolvable

A user ID or a user or channel object.

This is not a user name. Please use HelixUserApi#getUserByName to fetch a user object by name.

Aliased type: string | number | UserIdResolvableType

none

The raiding broadcaster.

Return type: void

startRaid(from, to)

async

Initiate a raid from a live broadcaster to another live broadcaster.

ParameterTypeRequiredDefaultDescription
from
UserIdResolvable

A user ID or a user or channel object.

This is not a user name. Please use HelixUserApi#getUserByName to fetch a user object by name.

Aliased type: string | number | UserIdResolvableType

none

The raiding broadcaster.

to
UserIdResolvable

A user ID or a user or channel object.

This is not a user name. Please use HelixUserApi#getUserByName to fetch a user object by name.

Aliased type: string | number | UserIdResolvableType

none

The raid target.

Return type: HelixRaid