Files
SupportBot/Structures/Addon.js
T

27 lines
553 B
JavaScript
Raw Normal View History

2024-10-10 19:14:45 +01:00
2021-12-18 18:57:45 -06:00
// SupportBot | Emerald Services
// Addon Structure
class Command {
constructor(options) {
this.name = options.name;
this.description = options.description;
this.permissions = options.permissions;
this.options = options.options || [];
this.run = options.run;
this.defaultPermission = true;
}
2024-10-10 19:14:45 +01:00
// Method to dynamically update options
setOptions(options) {
this.options = options;
}
2021-12-18 18:57:45 -06:00
}
2024-10-10 19:14:45 +01:00
2021-12-18 18:57:45 -06:00
class Event {
constructor(event, run) {
this.event = event;
this.run = run;
}
}
module.exports = { Command, Event };