Skip to main content
Corvus Connection

OnChatCommand

Attribute
TheOmenDen.StreamPulse.Scripting.Attributes.OnChatCommandAttributeMarks a method as a handler for a chat command — a message whose text begins with a prefix (e.g. !) followed by a command word. The method must accept (IScriptContext, ChatCommandContext); the context carries the parsed command word, the argument text/list, and the sender's role flags. Which specific command (and minimum role) a handler responds to is decided by the handler itself — a compiled graph bakes the authored command/prefix/min-role as a guard.