Skip to content

Commit 4eebfc4

Browse files
authored
fix(soundcloud): fix credential is not used
1 parent 49207a8 commit 4eebfc4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/soundcloud/src/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ export class SoundCloudPlugin extends ExtractorPlugin {
2929
if (options.oauthToken && typeof options.oauthToken !== "string") {
3030
throw new DisTubeError("INVALID_TYPE", "string", options.oauthToken, "oauthToken");
3131
}
32-
this.soundcloud = new Soundcloud({
33-
clientId: options.clientId,
34-
oauthToken: options.oauthToken,
35-
});
32+
33+
this.soundcloud = new Soundcloud(options.clientId, options.oauthToken);
3634
}
3735
search<T>(query: string, type?: SearchType.Track, limit?: number, options?: ResolveOptions<T>): Promise<Song<T>[]>;
3836
search<T>(

0 commit comments

Comments
 (0)