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) {
|
||||
Events.emit('raw-event', { type: e, data: d });
|
||||
if (e === this.actions.READY || e === this.actions.RESUMED) {
|
||||
Events.emit(e);
|
||||
Events.emit(e, d);
|
||||
return;
|
||||
}
|
||||
if (!Object.keys(SocketStructs).includes(e)) return;
|
||||
|
|
Loading…
Reference in New Issue