events now extend base Event class

This commit is contained in:
Emily 2022-12-12 12:14:28 +11:00
parent 1a24f5b819
commit d93d42a131
4 changed files with 10 additions and 5 deletions

View file

@ -1,4 +1,4 @@
module.exports = class {
module.exports = class Event {
constructor (wsEvent) {
this.wsEvent = wsEvent;
}

View file

@ -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;
}

View file

@ -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;
}

View file

@ -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;
}