Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
davidffa committed Aug 9, 2022
1 parent c7a5121 commit ab05b17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export default class Node {
this.handleTrackStuck(e as TrackStuckEvent, player);
break;
case 'TrackExceptionEvent':
this.handleTrackExeption(e as TrackExceptionEvent, player);
this.handleTrackException(e as TrackExceptionEvent, player);
break;
case 'WebSocketClosedEvent':
this.handleWSClose(e as WebSocketClosedEvent, player);
Expand Down Expand Up @@ -388,8 +388,8 @@ export default class Node {
this.vulkava.emit('trackStuck', player, player.current, ev.thresholdMs);
}

private handleTrackExeption(ev: TrackExceptionEvent, player: Player) {
this.vulkava.emit('trackExeption', player, player.current, ev.exception);
private handleTrackException(ev: TrackExceptionEvent, player: Player) {
this.vulkava.emit('trackException', player, player.current, ev.exception);
player.skip();
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export enum ConnectionState {
* @prop {Boolean} [selfMute] - Whether or not this player is muted
* @prop {Boolean} [selfDeaf] - Whether or not this player is deafened
* @prop {Track | null} current - The current track of this player
* @prop {Array<Track | UnresolvedTrack>} queue - The queue of this player
* @prop {AbstractQueue} queue - The queue of this player
* @prop {Boolean} trackRepeat - Whether to repeat the current track
* @prop {Boolean} queueRepeat - Whether to repeat the queue
* @prop {Boolean} playing - Whether this player is playing or not
Expand Down

0 comments on commit ab05b17

Please sign in to comment.