Skip to content

HasPredictionMethods ​

php
trait Zairakai\LaravelTwitch\Services\Concerns\HasPredictionMethods

Twitch Predictions API methods.

Source: src/Services/Concerns/HasPredictionMethods.php

Methods ​

createPrediction() ​

php
public function createPrediction(CreatePredictionRequest $createPredictionRequest): Prediction

Create a Channel Points prediction for a broadcaster.

endPrediction() ​

php
public function endPrediction(string $broadcasterId, string $predictionId, string $status, string $winningOutcomeId = null): Prediction

Lock, resolve, or cancel a prediction.

ParameterDescription
$statusRESOLVED or CANCELED
$winningOutcomeIdRequired when status is RESOLVED

getPredictions() ​

php
public function getPredictions(string $broadcasterId, string|array|null $predictionIds = null, int $first = 20, string $after = null): PaginatedResult

Get information about predictions for a broadcaster's channel.

ParameterDescription
$predictionIdsFilter by specific prediction ID(s)

Returns PaginatedResult<Prediction>

Documentation of 4.1.4 , built from a03e949 on 4.1.4 by pipeline #2949087255 on 2026-10-11.