Skip to content

Commit

Permalink
💥 movedChannel -> channelMove
Browse files Browse the repository at this point in the history
  • Loading branch information
melike2d committed Aug 11, 2021
1 parent 4c31857 commit c2f424d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export class Player<N extends Node = Node> extends EventEmitter<PlayerEvents> {
}

if (update.channel_id && this.channelId !== fromSnowflake(update.channel_id)) {
this.emit("movedChannel", fromSnowflake(update.channel_id));
this.emit("channelMove", this.channelId!, fromSnowflake(update.channel_id));
}

this.#_voiceUpdate.sessionId = update.session_id;
Expand Down Expand Up @@ -370,8 +370,8 @@ export type PlayerEvents = {
trackEnd: [track: string | null, reason: Lavalink.TrackEndReason];
trackException: [track: string | null, error: Error];
trackStuck: [track: string | null, thresholdMs: number];
movedChannel: [channelId: bigint];
channelLeave: [code: number, reason: string, byRemote: boolean];
channelMove: [from: bigint, to: bigint];
};

export interface ConnectOptions {
Expand Down

0 comments on commit c2f424d

Please sign in to comment.