galactic-bot/structure/interfaces/Module.js
2020-04-09 15:08:28 -06:00

23 lines
431 B
JavaScript

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