Skip to content

Commit 6600371

Browse files
committed
update
1 parent 4145a0a commit 6600371

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/structures/CustomSearches/BandCampSearch.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ export const bandCampSearch = async (player: Player, query: string, requestUser:
2020

2121
if (!data.ok) throw new Error(`Bandcamp Error: ${data.statusText}`);
2222

23-
const text = await data.text();
2423
let json;
2524
try {
26-
json = JSON.parse(text);
25+
json = await data.json();
2726
} catch {
2827
throw new Error("Invalid JSON response from Bandcamp");
2928
}
@@ -45,4 +44,4 @@ export const bandCampSearch = async (player: Player, query: string, requestUser:
4544
playlist: null,
4645
tracks: tracks
4746
} as UnresolvedSearchResult;
48-
}
47+
}

src/structures/Filters.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ export class FilterManager {
200200
checkFiltersState(oldFilterTimescale?: Partial<TimescaleFilter>): boolean {
201201
this.data = this.data ?? {};
202202

203-
this.filters.volume = (this.data.volume !== 1 && this.data.volume !== undefined);
204203
this.filters.audioOutput = (this.data.channelMix && this.filters.audioOutput !== "stereo") ? this.filters.audioOutput : "stereo";
205204

206205
this.filters.rotation = this.privateNot0(this.data.rotation?.rotationHz);

src/structures/Node.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,7 @@ export class LavalinkNode {
12131213
break;
12141214
case "ready": // payload: { resumed: false, sessionId: 'ytva350aevn6n9n8', op: 'ready' }
12151215
this.reconnectAttempts = 1;
1216+
clearTimeout(this.reconnectTimeout);
12161217

12171218
this.sessionId = payload.sessionId;
12181219
this.resuming.enabled = payload.resumed;

0 commit comments

Comments
 (0)