I'm coding a Node.JS Discord bot and would like to have error messages stored in a separate JSON file. Though, in this JSON file there's template literals, like
{
"error": "Oh snap! Better check this out: ${error}"
}
How would I go to use them?
Thanks,
Well I don't want to convert it, just a way to use it. Far from being a duplicate.