Currently, I am working on developing a custom discord bot for a server that I share with some friends. The bot includes a warn system and level system, and I have successfully implemented JavaScript to write data to an external JSON file.
{
"other-users": "other-user-data",
"304937039483493847": {
"amount": 1,
"id": "<@304937039483493847>",
"username": "Jered",
"reasons": {
"first-reason": "test"
}
},
"other-users": "other-user-data"
}
So far, I have managed to update the warning data in the file as needed, but I am now facing the challenge of deleting the entire 304937039483493847
object from the JSON file.
I am seeking suggestions or guidance on the best approach to accomplish this task. Any help would be greatly appreciated!