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) {
|
constructor (wsEvent) {
|
||||||
this.wsEvent = 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) {
|
constructor (wsEvent) {
|
||||||
|
super (wsEvent);
|
||||||
this.wsEvent = wsEvent;
|
this.wsEvent = wsEvent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
const Event = require("../../base/Event.js");
|
||||||
const activities = require('../../assets/activities.json');
|
const activities = require('../../assets/activities.json');
|
||||||
|
module.exports = class Activity extends Event {
|
||||||
module.exports = class {
|
|
||||||
constructor (wsEvent) {
|
constructor (wsEvent) {
|
||||||
|
super (wsEvent);
|
||||||
this.wsEvent = 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) {
|
constructor (wsEvent) {
|
||||||
|
super (wsEvent);
|
||||||
this.wsEvent = wsEvent;
|
this.wsEvent = wsEvent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue