Skip to content

Get Sansar

Script API

Chat.SubscriptionHandler

Where: Client
More page actions

For the complete documentation index, see llms.txt. This page is also available as Markdown.

Delegate Namespace Sansar.Simulation

Subscribe to receive events on chat messages from the system, users or scripts.

[System.Obsolete("Use subscription callbacks of type Action<Sansar.Simulation.ChatData>", false)]
public delegate void Chat.SubscriptionHandler(
int Channel,
string Source,
Sansar.Script.SessionId SourceId,
Sansar.Script.ScriptId SourceScriptId,
string Message
)
ParameterTypeDescription
Channelintint channel which the chat occurs on.
Sourcestringstring source of the chat: system, user or script.
SourceIdSansar.Script.SessionIdSansar.Script.SessionId id of the chat source. May be SessionId.Invalid if the source is not an agent.
SourceScriptIdSansar.Script.ScriptIdSansar.Script.ScriptId id of the chat source. May be ScriptId.Invalid if the source is not a script.
Messagestringstring message of the chat event.

Generated from the Sansar 47.10.0 client ScriptApi snapshot.