$ObjectMerge

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

Usage

$ObjectMerge[object]

Example:

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

Custom Command Bot 05/28/2024
{"name":"Mido", "country":"EG"}

Example (Nested Keys):

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

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