From aff8a5ac29a52bdf39e01e202408e0d8ad0ad2af Mon Sep 17 00:00:00 2001 From: Snowflake107 Date: Sun, 9 May 2021 19:01:11 +0545 Subject: [PATCH] make linter happy --- src/Player.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Player.ts b/src/Player.ts index 40158ed..f72c0cb 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -203,6 +203,7 @@ export class Player extends EventEmitter { const playlist = await spotify.getData(query); if (!playlist) return void this.emit(PlayerEvents.NO_RESULTS, message, query); + // tslint:disable-next-line:no-shadowed-variable const tracks = await Promise.all( playlist.tracks.items.map(async (item: any) => { const sq = @@ -280,6 +281,7 @@ export class Player extends EventEmitter { this.emit(PlayerEvents.PLAYLIST_PARSE_END, playlist, message); // @ts-ignore + // tslint:disable-next-line:no-shadowed-variable const tracks = playlist.videos as Track[]; if (this.isPlaying(message)) { @@ -968,6 +970,7 @@ export class Player extends EventEmitter { return { uptime: this.client.uptime, connections: this.client.voice.connections.size, + // tslint:disable:no-shadowed-variable users: this.client.voice.connections.reduce( (a, c) => a + c.channel.members.filter((a) => a.user.id !== this.client.user.id).size, 0