Push the data in generic events as well
This commit is contained in:
parent
37ecd7ec4e
commit
2e512e61b2
|
@ -72,7 +72,7 @@ export default class extends EventListener {
|
||||||
dispatch(e, d) {
|
dispatch(e, d) {
|
||||||
Events.emit('raw-event', { type: e, data: d });
|
Events.emit('raw-event', { type: e, data: d });
|
||||||
if (e === this.actions.READY || e === this.actions.RESUMED) {
|
if (e === this.actions.READY || e === this.actions.RESUMED) {
|
||||||
Events.emit(e);
|
Events.emit(e, d);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!Object.keys(SocketStructs).includes(e)) return;
|
if (!Object.keys(SocketStructs).includes(e)) return;
|
||||||
|
|
Loading…
Reference in New Issue