Push the data in generic events as well

This commit is contained in:
Jiiks 2018-03-07 12:33:56 +02:00
parent 37ecd7ec4e
commit 2e512e61b2
1 changed files with 1 additions and 1 deletions

View File

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