2020-04-08 18:08:46 +02:00
|
|
|
const Component = require('./Component.js');
|
2020-04-09 23:08:28 +02:00
|
|
|
const { Collection } = require('../../util');
|
2020-04-08 18:08:46 +02:00
|
|
|
|
|
|
|
class Module extends Component {
|
|
|
|
|
2020-04-09 23:08:28 +02:00
|
|
|
constructor(manager, opts = {}) {
|
2020-04-08 18:08:46 +02:00
|
|
|
if(!opts) return null;
|
|
|
|
|
2020-04-09 23:08:28 +02:00
|
|
|
super(manager, {
|
2020-04-08 18:08:46 +02:00
|
|
|
id: opts.name,
|
|
|
|
type: 'module'
|
|
|
|
});
|
|
|
|
|
2020-04-09 23:08:28 +02:00
|
|
|
this.manager = manager;
|
2020-04-08 18:08:46 +02:00
|
|
|
|
|
|
|
this.name = opts.name;
|
|
|
|
this.components = new Collection();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = Module;
|