Skip to content

Commit

Permalink
fix: allow custom source to query
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi authored Jul 22, 2022
1 parent a8fc3d1 commit d734604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Structures/REST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class REST {
const { query } = options;
return this.get<LoadTrackResponse>(
Routes.loadTracks(
this.isUrl(options.query) ? encodeURIComponent(query) : `${encodeURIComponent(`${this.resolveIdentifier(source)}:${query}`)}`
this.isUrl(options.query) ? encodeURIComponent(query) : query.includes(":") ? query : `${encodeURIComponent(`${this.resolveIdentifier(source)}:${query}`)}`
)
);
}
Expand Down

0 comments on commit d734604

Please sign in to comment.