Overview
Methods
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)
asyncCancels an initiated raid.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
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. |
startRaid(from, to)
asyncInitiate a raid from a live broadcaster to another live broadcaster.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
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. |