Skip to content

Commit

Permalink
Switched to soundcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
Prince527GitHub committed Apr 5, 2024
1 parent 97eed30 commit 47f56b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SlashCommands/music/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = {

const songTitle = interaction.options.getString("songtitle");

const resolve = await client.poru.resolve({ query: songTitle, source: "ytsearch" });
const resolve = await client.poru.resolve({ query: songTitle, source: "scsearch" });
const { loadType, tracks, playlistInfo } = resolve;

if (loadType === "playlist") {
Expand Down
2 changes: 1 addition & 1 deletion website/router/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ router.post("/music/play", checkAPIAuth, async (req, res) => {
deaf: true
});

const { loadType, tracks, playlistInfo } = await client.poru.resolve({ query: query, source: "ytsearch" });
const { loadType, tracks, playlistInfo } = await client.poru.resolve({ query: query, source: "scsearch" });

const api = { type: loadType === "playlist" ? "playlist" : "search" };

Expand Down

0 comments on commit 47f56b7

Please sign in to comment.