Skip to content

EventSubEvent ​

php
interface Zairakai\LaravelTwitch\Dto\EventSub\Events\EventSubEvent

Interface for every typed EventSub notification payload.

Implemented by both dedicated per-type DTOs (e.g. ChannelFollowEvent) and the GenericEventSubEvent fallback used for subscription types without a dedicated DTO yet.

Source: src/Dto/EventSub/Events/EventSubEvent.php

Methods ​

getBroadcasterUserId() ​

php
public function getBroadcasterUserId(): string

The Twitch user ID of the channel this event belongs to, or null when the event has no single channel owner (user-scoped or app-scoped events such as UserUpdateEvent, or a raw GenericEventSubEvent fallback whose payload has no broadcaster_user_id field).

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