Package Exports
- djs-collection-persistent
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (djs-collection-persistent) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Discord.js Collections made Persistent
THIS REPOSITORY IS NOW OBSOLETE AND WILL NO LONGER BE UPDATED
Moving to Enmap
djs-collection-persistent and djs-collection have been merged into a more efficient system that's been renamed Enmap.
To get enmap, see The NPMJS Page.
Updating requires no migration, only a change in code:
// OLD CODE
const PersistentCollection = require("djs-collection-persistent");
const myCollection = new PersistentCollection({name: 'myCollection'});
// NEW CODE
const Enmap = require('enmap');
const EnmapLevel = require('enmap-level');
const myCollection = new Enmap({ provider: new EnmapLevel({ name: 'myCollection' }); });Note that persistence requires a Provider. If you're using djs-collection-persistent you'll need to install both enmap and enmap-level to migrate. No data will be lost.
Support
For support join 〈evie.codes〉 and talk to me, 〈evie.codes〉!