$ObjectMerge

Merge the current object with another object, it overwrites the conflicted keys

Usage

$ObjectMerge[object]

Example:

Member04/02/2024
!!exec $objectSet[name;Mido]
$objectMerge[{"country":"EG"}]
$objectGet

Custom Command Bot 04/02/2024
{"name":"Mido", "country":"EG"}

Example (Nested Keys):

Member04/02/2024
!!exec $objectSet[user;name;Mido]
$objectSet[user;country;EG]
Before: $objectGet
$objectMerge[user;{"name":"Rake","country":"DE"}]
After: $objectGet

Custom Command Bot 04/02/2024
Before: {"user":{"name":"Mido","country":"EG"}}
After: {"user":{"name":"Rake","country":"DE"}}