Skip to content

Commit

Permalink
chore: directly fire event instead of bubbling up
Browse files Browse the repository at this point in the history
  • Loading branch information
0t4u committed Aug 13, 2024
1 parent a103c35 commit 049b5dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/guild/Player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,11 @@ export class Player extends TypedEventEmitter<PlayerEvents> {
this.emit('closed', json);
break;
default:
this.node.emit('debug', `[Player] -> [Node] : Unknown Player Event Type, Data => ${JSON.stringify(json)}`);
this.node.manager.emit(
'debug',
this.node.name,
`[Player] -> [Node] : Unknown Player Event Type, Data => ${JSON.stringify(json)}`
);
}
}
}

0 comments on commit 049b5dc

Please sign in to comment.