Skip to content

Commit

Permalink
fix(soundcloud): fix credential is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexInCube authored Oct 27, 2024
1 parent 49207a8 commit 4eebfc4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/soundcloud/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ export class SoundCloudPlugin extends ExtractorPlugin {
if (options.oauthToken && typeof options.oauthToken !== "string") {
throw new DisTubeError("INVALID_TYPE", "string", options.oauthToken, "oauthToken");
}
this.soundcloud = new Soundcloud({
clientId: options.clientId,
oauthToken: options.oauthToken,
});

this.soundcloud = new Soundcloud(options.clientId, options.oauthToken);

Check warning on line 33 in packages/soundcloud/src/index.ts

View workflow job for this annotation

GitHub Actions / Tests

'Soundcloud' is deprecated. Use `new Soundcloud({ clientId, oauthToken, proxy })` instead
}
search<T>(query: string, type?: SearchType.Track, limit?: number, options?: ResolveOptions<T>): Promise<Song<T>[]>;
search<T>(
Expand Down

0 comments on commit 4eebfc4

Please sign in to comment.