v5.0.0
$addObjectProperty
Adds a property name to an existing object.
With this function you can add properties (Keys) to an object previously created in JSON format.

Fields

This function has 2 fields
  1. 1.
    Name (Required)
  2. 2.
    Value (Required)
Raw Usage: $addObjectProperty[name;value]

Options

  • Name - Name of property
  • Value - The value that's assigned to the <key>

Usage

1
bot.command({
2
name: "add-object-property",
3
code: `
4
$getObjectProperty[fact]
5
$addObjectProperty[fact;Kuba is cool]
6
$createObject[{}]
7
`
8
});
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub