23 lines
431 B
JavaScript
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; |