Either way is to use heroku postgres database which will help you to store data...
I am creating a discord bot and I use a JSON file to store everyone's data , the problem is that when I have to update my game and if I upload the code to Heroku it will rewrite everyone's data there is two ways I can fix this,
Get the JSON file from Heroku
or Rewrite the code in Heroku with the new code (best option)
If you know how to do either of these commands please let me know down below! :)
How do I replace or get a file in Heroku