Files
xiao/framework/Group.js
T
2021-06-05 12:17:33 -04:00

13 lines
290 B
JavaScript

module.exports = class Group {
constructor(client, id, name) {
Object.defineProperty(this, 'client', { value: client });
this.id = id.toLowerCase();
this.name = name;
}
get commands() {
return this.client.registry.commands.filter(command => command.groupID === this.id);
}
};