forked from Galactic/galactic-bot
22 lines
463 B
JavaScript
22 lines
463 B
JavaScript
|
const { Structures } = require('discord.js');
|
||
|
|
||
|
const Guild = Structures.extend('Guild', (Guild) => {
|
||
|
|
||
|
class ExtendedGuild extends Guild {
|
||
|
|
||
|
constructor(...args) {
|
||
|
|
||
|
super(...args);
|
||
|
|
||
|
this.storageManager = this.manager.storageManager;
|
||
|
this._settings = null; //internal cache of current guild's settings; should ALWAYS stay the same as database.
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
return ExtendedGuild;
|
||
|
|
||
|
});
|
||
|
|
||
|
module.exports = Guild;
|