Skip to main content
Corvus Connection

IRpgEncountersApi

Interface
TheOmenDen.StreamPulse.Scripting.IRpgEncountersApiRuns encounters for a viewer from a script (ctx.Rpg.Encounters, spec 062). Dispatches the same Mediator commands as the chat !fight/!explore and the run-encounter/explore nodes (parity). Failure-safe: a not-joined viewer, an unknown encounter/pool, a gated-out feature, or any error yields null.

Members

2
  • ExploreAsync
    method
    ValueTask<RpgEncounterOutcome> ExploreAsync(string twitchUserId, string poolSlug = default, CancellationToken cancellationToken = default)
    Explores a pool (the default when poolSlug is null) and resolves the picked encounter, or null.
  • FightAsync
    method
    ValueTask<RpgEncounterOutcome> FightAsync(string twitchUserId, string encounterSlug, CancellationToken cancellationToken = default)
    Resolves the named encounter for the viewer (built-in or graph-routed), or null on failure.