events now extend base Event class
This commit is contained in:
parent
1a24f5b819
commit
d93d42a131
4 changed files with 10 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
module.exports = class {
|
||||
module.exports = class Event {
|
||||
constructor (wsEvent) {
|
||||
this.wsEvent = wsEvent;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
module.exports = class {
|
||||
const Event = require("../../base/Event.js");
|
||||
module.exports = class InteractionHandler extends Event {
|
||||
constructor (wsEvent) {
|
||||
super (wsEvent);
|
||||
this.wsEvent = wsEvent;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
const Event = require("../../base/Event.js");
|
||||
const activities = require('../../assets/activities.json');
|
||||
|
||||
module.exports = class {
|
||||
module.exports = class Activity extends Event {
|
||||
constructor (wsEvent) {
|
||||
super (wsEvent);
|
||||
this.wsEvent = wsEvent;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
module.exports = class {
|
||||
const Event = require("../../base/Event.js");
|
||||
module.exports = class Ready extends Event {
|
||||
constructor (wsEvent) {
|
||||
super (wsEvent);
|
||||
this.wsEvent = wsEvent;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue