My bot uses a JSON file for certain aspects, when deploying the bot everything works normal. When I need to redeploy the bot for a fix or update all the json data gets wiped/removed. How could I save the json data?
This is because Deployments do not have persistent file systems. This has been a problem since their creation. Consider using a JSON-based database such as Firebase Real-Time Database to store your JSON objects.