ArgumentContext
Properties
# Executor
ArgumentContext.Executor: Player
The player that ran the command this argument belongs to.
# RawSegments
ArgumentContext.RawSegments: array<string>
An array of strings representing the values in a comma-separated list, if applicable.
# Prefix
ArgumentContext.Prefix: string
The prefix used in this argument (like % in %Team).
Empty string if no prefix was used. See Prefixed Union Types for more details.
Instance Methods
#
GetValue
ArgumentContext.GetValue() →
any
Returns the parsed value for this argument.
Returns
| Type | |
|---|---|
any
|
#
GetTransformedValue
ArgumentContext.GetTransformedValue(segment:
number) →
any...
Returns the transformed value from this argument, see Types.
Parameters
| Name | Type | Required | |
|---|---|---|---|
segment |
number
|
✔ |
Returns
| Type | |
|---|---|
any...
|
← Meta-Commands Cmdr →