EventSubSubscriptionType

Contract for an EventSub subscription type that can be registered via the Helix API.

Concrete implementations live in the twitchkt-eventsub module. This interface is defined here so that TwitchHelix can accept subscription registrations without depending on the full EventSub module.

Properties

Link copied to clipboard
abstract val type: String

the EventSub subscription type identifier (e.g. channel.follow).

Link copied to clipboard
abstract val version: String

the schema version for this subscription type.

Functions

Link copied to clipboard
abstract fun toCondition(): Map<String, String>

Serializes the typed condition fields into the condition map expected by the Twitch API.