description |
---|
Creates an object that can be used later |
This function creates an object. Simplified terms, its a in-code variable that is only accessible in the current code
This function has 1 optional field
- JSON (Optional)
Raw Usage: $createObject[{json (required)}]
- JSON - The key & property in the object
Without optional field
bot.command({
name: "createObject",
code: `
$getObjectProperty[message]
$addObjectProperty[message;Hello World]
$createObject[{}]`
})
With optional field
bot.command({
name: "createObject",
code: `
$getObjectProperty[message]
$createObject[{"message":"Hello Word"}]`
})