Represents a logged command execution event.
Signature:
declare class CommandLog extends BaseExtends: Base
#Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Creates an instance of CommandLog. |
#Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
string |
The full command string executed. | ||
|
(Optional) The player instance representing who ran the command, if they are still cached. | |||
|
number |
The UserId of the player who ran the command. | ||
|
string |
The username of the player who ran the command. | ||
|
number |
Unix timestamp of when the command was run. |
#Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Patches the CommandLog structure with new raw data. | ||
|
Converts this CommandLog instance to raw JSON representation. |