compiler-discord/src/struct/Language.js

25 lines
486 B
JavaScript
Raw Normal View History

2019-03-12 10:09:46 +01:00
const { AkairoModule } = require('discord-akairo');
class Language extends AkairoModule {
constructor(id, {
category,
highlight,
aliases,
loads = [id],
2019-03-12 10:09:46 +01:00
options = {}
} = {}) {
super(id, { category });
this.highlight = highlight;
this.aliases = aliases;
this.loads = loads;
2019-03-12 10:09:46 +01:00
this.options = options;
}
runWith() {
return { id: this.id, env: {} };
}
}
module.exports = Language;