begin work on some abstractions

This commit is contained in:
Erik 2021-09-26 01:24:32 +03:00
parent 7715bb6724
commit 1d09d3291b
No known key found for this signature in database
GPG Key ID: FEFF4B220DDF5589

View File

@ -0,0 +1,36 @@
class CacheHandler {
constructor (client) {
this.client = client;
}
load () {
throw new Error('Not implemented');
}
savePersistentCache () {
throw new Error('Not implemented');
}
saveModmailHistory () {
throw new Error('Not implemented');
}
loadModmailHistory () {
throw new Error('Not implemented');
}
get json () {
return {
queue: this.queue,
channels: this.channels,
lastActivity: this.lastActivity,
misc: this.misc
};
}
}
module.exports = CacheHandler;