enmaps get deleted upon restarts

  discord.js, javascript

my enmaps gets deleted once my discord bot gets restarted
this is how I simply store data

const Enmap = require("enmap");
client.points = new Enmap();
client.points.set("test", "works?")

and it gets deleted when the discord bot restarts if this is normal is there a way to prevent that and to actually save the data?

Source: Ask Javascript Questions

LEAVE A COMMENT