CommandContext
Represents an individual command execution, encapsulating state, arguments, and routing across the client-server boundary.
Properties
Dispatcher
This item is read only and cannot be modified. Read OnlyCommandContext.Dispatcher: DispatcherThe dispatcher instance that created this command context.
Cmdr
This item is read only and cannot be modified. Read OnlyA direct reference to Cmdr. This may either be the server or client version depending on where the command is running.
Name
This item is read only and cannot be modified. Read OnlyCommandContext.Name: stringThe primary name of the command being executed (not its alias).
RawText
This item is read only and cannot be modified. Read OnlyCommandContext.RawText: stringThe complete, unparsed raw text sequence used to trigger this command.
Object
This item is read only and cannot be modified. Read OnlyCommandContext.Object: CommandDefinitionThe complete underlying static command definition layout configuration.
Group
This item is read only and cannot be modified. Read OnlyCommandContext.Group: anyThe group category assigned to this command, typically a string.
State
CommandContext.State: tableA blank dictionary useful for carrying user-defined execution state across hooks or internal pipeline filters.
Aliases
This item is read only and cannot be modified. Read OnlyCommandContext.Aliases: {string}An array of secondary matching aliases capable of evoking this command.
Alias
This item is read only and cannot be modified. Read OnlyCommandContext.Alias: stringThe specific identifier string utilized by the user to invoke this execution context.
Description
This item is read only and cannot be modified. Read OnlyCommandContext.Description: stringThe display description explaining what the command does.
Executor
This item is read only and cannot be modified. Read OnlyCommandContext.Executor: PlayerThe native Roblox Player instance that executed this command text string.
ArgumentDefinitions
This item is read only and cannot be modified. Read OnlyThe structural argument schema arrays inherited from the command definition layout.
RawArguments
This item is read only and cannot be modified. Read OnlyCommandContext.RawArguments: {string}An array of split string inputs mapped before evaluation and validation phases occur.
Arguments
This item is read only and cannot be modified. Read OnlyAn array matching internal parsed ArgumentContext values tied sequentially to inputs.
Data
CommandContext.Data: anySpecial contextual data object fetched client-side and routed down into server pipelines.
Response
This item is read only and cannot be modified. Read OnlyCommandContext.Response: string?The returned execution or error feedback output string context generated by run parameters.
Guards
This item is read only and cannot be modified. Read OnlyA table of guarding interception hooks capable of short-circuiting runtime sequences.
Functions
GetLastArgument
Scans contextual entries in reverse to locate the last argument containing text. Mainly useful for updating current autocompletion layouts.
Run
CommandContext:Run() → string?--
The final logged text response result.
Triggers execution pipelines for hooks, layout guards, and boundary evaluation modules.
GetArgument
CommandContext:GetArgument(index: number--
The positional index of the argument.
) → ArgumentContext?Returns the ArgumentContext object for the given index.
GetData
CommandContext:GetData() → anyReturns the custom gathered data payload mapped by client-side definition closures.
SendEvent
CommandContext:SendEvent(event: string,--
The unique identifier string name of the network event.
...: any--
Extensible arguments passed alongside the payload.
) → ()Dispatches a named network event targeting a specific player (on the server), or processes a local handler event sequence directly (on the client).
BroadcastEvent
CommandContext:BroadcastEvent(event: string,--
The registration name of the network event.
...: any--
Dynamic arguments bundled within the packet.
) → ()Broadcasts a custom network event message sequentially targeting all connected clients.
Reply
CommandContext:Reply(text: string,--
The output line text statement to print.
) → ()Prints text inside the invoking executor's console UI frame window. Useful for streaming verbose text output lines over progressive asynchronous jobs.
GetStore
CommandContext:GetStore(name: string--
Identifiable keyword reference mapping out the store.
) → tableQueries persistent global data storage structures registered under a tracking name.
HasImplementation
CommandContext:HasImplementation() → booleanReturns true if the core executable logic of this context has a runnable implementation on the machine currently handling evaluations.