ITemplatesApi
Interface
Members
5
ListAsync
method
Enumerates the available templates, optionally filtered to one context-kind name (e.g. "Follow"; case-insensitive). An unrecognized kind name yields an empty list. The kind is a string (not the MessageContextKind enum) to keep the scripting SDK free of project dependencies.ValueTask<IReadOnlyList<TemplateSummary>> ListAsync(string kind = default, CancellationToken cancellationToken = default)RenderAsync
method
Renders the named template against the current handler's trigger context. An unknown name or a template whose context kind doesn't match the current trigger returns empty (logged).ValueTask<string> RenderAsync(string nameOrId, CancellationToken cancellationToken = default)RenderAsync
method
Renders the named template against an explicitly supplied trigger context (one of the TheOmenDen.StreamPulse.Scripting.Contexts records). Unknown/kind-mismatch ⇒ empty (logged).ValueTask<string> RenderAsync(string nameOrId, object context, CancellationToken cancellationToken = default)RenderGroupAsync
method
Picks a member of the named group per its strategy, then renders it against the current context.ValueTask<string> RenderGroupAsync(string groupName, CancellationToken cancellationToken = default)RenderWithAsync
method
Renders the named template against an explicit token dictionary (advanced) — keyed by full token name (e.g. user.displayName). Tokens absent from the map fall back to the template's defaults.ValueTask<string> RenderWithAsync(string nameOrId, IReadOnlyDictionary<string, object> tokens, CancellationToken cancellationToken = default)
