Skip to content

Commit

Permalink
Merge pull request #538 from NavIshanOp/patch-1
Browse files Browse the repository at this point in the history
Fix search.js
  • Loading branch information
saiteja-madha authored Oct 29, 2024
2 parents cd49aab + e0fc237 commit bcd72e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/music/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ async function search({ member, guild, channel }, query) {

const results = res.tracks.slice(0, max);
const options = results.map((result, index) => ({
label: result.info.title,
label: result.info.title.length > 100 ? result.info.title.slice(0, 97) + '...' : result.info.title, // Truncate title
value: index.toString(),
}));

Expand Down

0 comments on commit bcd72e9

Please sign in to comment.