mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
13 lines
290 B
JavaScript
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);
|
|
}
|
|
};
|