galactic-bot/structure/interfaces/Module.js
2020-04-08 10:08:46 -06:00

25 lines
507 B
JavaScript

const Component = require('./Component.js');
const Collection = require('../../../util/interfaces/Collection.js');
class Module extends Component {
constructor(client, opts = {}) {
if(!opts) return null;
super(client, {
id: opts.name,
type: 'module'
});
Object.defineProperty(this, 'client', {
value: client
});
this.name = opts.name;
this.components = new Collection();
}
}
module.exports = Module;