Skip to content
This repository has been archived by the owner on Aug 28, 2018. It is now read-only.

Latest commit

 

History

History
30 lines (18 loc) · 1.02 KB

README.md

File metadata and controls

30 lines (18 loc) · 1.02 KB

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〉!